aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax <max.suraev@fairwaves.ru>2013-12-02 11:30:32 +0100
committerHarald Welte <laforge@gnumonks.org>2013-12-07 18:10:38 +0100
commit4f0abc0e3eb553c94e8e409ea14a1b047efe3028 (patch)
treead3ce264e1640fc0bfa732e08f2f733d4ba76f73 /include
parent56cc60dc2079a63e983d746689fd03d9a48ea8f5 (diff)
Refactor COMP128v23 implementation and add test suit
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/comp128v23.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/gsm/comp128v23.h b/include/osmocom/gsm/comp128v23.h
index aa26e56a..bebeb597 100644
--- a/include/osmocom/gsm/comp128v23.h
+++ b/include/osmocom/gsm/comp128v23.h
@@ -13,11 +13,11 @@
* Performs the COMP128 version 2 and 3 algorithm (used as A3/A8)
* ki : uint8_t [16]
* srand : uint8_t [16]
- * version : uint8_t (2 or 3)
* sres : uint8_t [4]
* kc : uint8_t [8]
* returns 1 if not version 2 or 3 specified
*/
-int comp128v23(const uint8_t *ki, const uint8_t *rand, uint8_t version, uint8_t *sres, uint8_t *kc);
+int comp128v2(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
+int comp128v3(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc);
#endif /* __COMP128V23_H__ */