diff --git a/openair3/TEST/test_aes128_ctr_decrypt.c b/openair3/TEST/test_aes128_ctr_decrypt.c index 251f80fa7081fd3f13b53aeb0d3e2f28a14853c1..209ce8977a2946fde8364270043a7afb49133c0d 100644 --- a/openair3/TEST/test_aes128_ctr_decrypt.c +++ b/openair3/TEST/test_aes128_ctr_decrypt.c @@ -48,7 +48,7 @@ void test_uncipher_ctr(const struct nettle_cipher *cipher, const uint8_t *key, uint8_t *data = malloc(length); uint8_t *ctr = malloc(cipher->block_size); - cipher->set_encrypt_key(ctx, key); + cipher->set_encrypt_key(ctx, key_length, key); memcpy(ctr, ictr, cipher->block_size); ctr_crypt(ctx, cipher->encrypt,