Commit 214596d3 authored by Cedric Roux's avatar Cedric Roux

bugfix: nea2 security: use correct bearer argument to init security

parent 0e641650
...@@ -50,7 +50,7 @@ void nr_pdcp_security_nea2_cipher(void *security_context, unsigned char *buffer, ...@@ -50,7 +50,7 @@ void nr_pdcp_security_nea2_cipher(void *security_context, unsigned char *buffer,
memcpy(p.key, ciphering_key, 16); memcpy(p.key, ciphering_key, 16);
p.type = AES_INITIALIZATION_VECTOR_16; p.type = AES_INITIALIZATION_VECTOR_16;
p.iv16.d.count = ntohl(count); p.iv16.d.count = ntohl(count);
p.iv16.d.bearer = bearer; p.iv16.d.bearer = bearer - 1;
p.iv16.d.direction = direction; p.iv16.d.direction = direction;
uint8_t out[length]; uint8_t out[length];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment