aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-06-01 16:26:43 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-01 16:27:31 +0200
commit3cb6defa379fd157b16bb42f405936933e64ce8a (patch)
tree936c14f8f2489139403213e41d07a4eedafa52fc /src
parent58fc67b2d16f14010e78147a48b1ef40796ba071 (diff)
GEA3: Implement libosmocore Kc uint64_t -> uint8_t * change
Diffstat (limited to 'src')
-rw-r--r--src/osmocom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmocom.c b/src/osmocom.c
index e8c410e..39efb73 100644
--- a/src/osmocom.c
+++ b/src/osmocom.c
@@ -6,7 +6,7 @@
#include "kasumi.h"
#include "a53f.h"
-static int gea3_run(uint8_t *out, uint16_t len, uint64_t kc, uint32_t iv,
+static int gea3_run(uint8_t *out, uint16_t len, uint8_t *kc, uint32_t iv,
enum gprs_cipher_direction direction)
{
uint8_t dir;
@@ -16,7 +16,7 @@ static int gea3_run(uint8_t *out, uint16_t len, uint64_t kc, uint32_t iv,
else
dir = 1;
- GEA3((uint8_t *)&kc, sizeof(kc), iv, dir, out, len);
+ GEA3(kc, sizeof(kc), iv, dir, out, len);
return 0;
}