From 39a287db7497180ffaf24c5d0de91a15e0fa0d5a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 6 Dec 2011 21:52:09 +0100 Subject: comp128: mark ki and srand as 'const' input parameters --- include/osmocom/gsm/comp128.h | 2 +- src/gsm/comp128.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osmocom/gsm/comp128.h b/include/osmocom/gsm/comp128.h index c37808f0..e4587d4f 100644 --- a/include/osmocom/gsm/comp128.h +++ b/include/osmocom/gsm/comp128.h @@ -16,7 +16,7 @@ * sres : uint8_t [4] * kc : uint8_t [8] */ -void comp128(uint8_t *ki, uint8_t *srand, uint8_t *sres, uint8_t *kc); +void comp128(const uint8_t *ki, const uint8_t *srand, uint8_t *sres, uint8_t *kc); #endif /* __COMP128_H__ */ diff --git a/src/gsm/comp128.c b/src/gsm/comp128.c index 5d5680c7..b7a23820 100644 --- a/src/gsm/comp128.c +++ b/src/gsm/comp128.c @@ -185,7 +185,7 @@ _comp128_permutation(uint8_t *x, uint8_t *bits) } void -comp128(uint8_t *ki, uint8_t *rand, uint8_t *sres, uint8_t *kc) +comp128(const uint8_t *ki, const uint8_t *rand, uint8_t *sres, uint8_t *kc) { int i; uint8_t x[32], bits[128]; -- cgit v1.2.3