Merge branch 'eurecom-develop' into eurecom-episys-merge-nsa

This commit is contained in:
Melissa Elkadi
2021-11-03 06:32:38 -07:00
79 changed files with 3435 additions and 672 deletions
+2
View File
@@ -121,6 +121,8 @@ int nr_derive_key(algorithm_type_dist_t alg_type, uint8_t alg_id,
string[6] = 0x01;
kdf(string, 7, key, 32, out, 32);
// in NR, we use the last 16 bytes, ignoring the first 16 ones
memcpy(*out, *out+16, 16);
return 0;
}