diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-03-22 22:25:13 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-03-22 22:25:13 +0800 |
commit | 351ec2a1784fbdb2ce688f50a9134532f3bf0723 (patch) | |
tree | d599030f3ffb4e563b73f5ede9a8e80fc1bc048f /libosmocore/include/osmocore/comp128.h | |
parent | e164d29e7f6c86d1f6f047bbf58159e46a11425f (diff) | |
parent | 045cc22baeb7f12dcb0022b79a1984d86e922870 (diff) |
Add 'libosmocore/' from commit '045cc22baeb7f12dcb0022b79a1984d86e922870'openbsc/0.9.00.9.0
git-subtree-dir: libosmocore
git-subtree-mainline: e164d29e7f6c86d1f6f047bbf58159e46a11425f
git-subtree-split: 045cc22baeb7f12dcb0022b79a1984d86e922870
Diffstat (limited to 'libosmocore/include/osmocore/comp128.h')
-rw-r--r-- | libosmocore/include/osmocore/comp128.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libosmocore/include/osmocore/comp128.h b/libosmocore/include/osmocore/comp128.h new file mode 100644 index 000000000..c37808f0f --- /dev/null +++ b/libosmocore/include/osmocore/comp128.h @@ -0,0 +1,22 @@ +/* + * COMP128 header + * + * See comp128.c for details + */ + +#ifndef __COMP128_H__ +#define __COMP128_H__ + +#include <stdint.h> + +/* + * Performs the COMP128 algorithm (used as A3/A8) + * ki : uint8_t [16] + * srand : uint8_t [16] + * sres : uint8_t [4] + * kc : uint8_t [8] + */ +void comp128(uint8_t *ki, uint8_t *srand, uint8_t *sres, uint8_t *kc); + +#endif /* __COMP128_H__ */ + |