diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2009-12-23 15:49:16 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2010-01-03 10:54:07 +0100 |
commit | d7c9e5cad887cd5bcfff9dfcc726e070750404bf (patch) | |
tree | b0049260e1f26d5b09089a0499f16f9fa2cdfaef /openbsc/include | |
parent | 8608e7c1334afa0fce145517c9b48c4e9a146941 (diff) |
encryption: Import a GPL comp128 implementation
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/comp128.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/comp128.h b/openbsc/include/openbsc/comp128.h new file mode 100644 index 000000000..691ade54b --- /dev/null +++ b/openbsc/include/openbsc/comp128.h @@ -0,0 +1,22 @@ +/* + * COMP128 header + * + * See comp128.c for details + */ + +#ifndef __COMP128_H__ +#define __COMP128_H__ + +#include <sys/types.h> + +/* + * Performs the COMP128 algorithm (used as A3/A8) + * ki : u_int8_t [16] + * srand : u_int8_t [16] + * sres : u_int8_t [4] + * kc : u_int8_t [8] + */ +void comp128(u_int8_t *ki, u_int8_t *srand, u_int8_t *sres, u_int8_t *kc); + +#endif /* __COMP128_H__ */ + |