diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-11-17 19:45:42 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-11-17 19:45:58 +0100 |
commit | 3e387cb35c03ad814362267028c46d5d0972a257 (patch) | |
tree | db05529358a442d57e3ff60db026fac418f5237d /src/gsm/a5.c | |
parent | f6c1d4cd81b556e25013daf15c3f3b2ef2108fa6 (diff) |
gsm/a5: Add const qualifier on the key
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/gsm/a5.c')
-rw-r--r-- | src/gsm/a5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gsm/a5.c b/src/gsm/a5.c index d3f2b2c3..fe341a6a 100644 --- a/src/gsm/a5.c +++ b/src/gsm/a5.c @@ -31,7 +31,7 @@ #include <osmocom/gsm/a5.h> void -osmo_a5(int n, uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) +osmo_a5(int n, const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) { switch (n) { @@ -138,7 +138,7 @@ _a5_1_get_output(uint32_t r[]) } void -osmo_a5_1(uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) +osmo_a5_1(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) { uint32_t r[3] = {0, 0, 0}; uint32_t fn_count; @@ -244,7 +244,7 @@ _a5_2_get_output(uint32_t r[], uint8_t *db) } void -osmo_a5_2(uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) +osmo_a5_2(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) { uint32_t r[4] = {0, 0, 0, 0}; uint32_t fn_count; |