mirror of https://github.com/PentHertz/srsLTE.git
Starting to extract AMF value from authentication request (AUTN) in srsUE.
This commit is contained in:
parent
cfd7e4b2a5
commit
e5d07a4231
|
@ -356,6 +356,11 @@ void usim::gen_auth_res_milenage( uint8_t *rand,
|
|||
{
|
||||
sqn[i] = autn_enb[i] ^ ak[i];
|
||||
}
|
||||
// Extract AMF from autn
|
||||
for(int i=0;i<2;i++)
|
||||
{
|
||||
amf[i]=autn_enb[6+i];
|
||||
}
|
||||
|
||||
// Generate MAC
|
||||
security_milenage_f1( k,
|
||||
|
@ -431,6 +436,10 @@ void usim::gen_auth_res_xor(uint8_t *rand,
|
|||
for(i=0;i<6;i++) {
|
||||
sqn[i] = autn_enb[i] ^ ak[i];
|
||||
}
|
||||
// Extract AMF from autn
|
||||
for(int i=0;i<2;i++){
|
||||
amf[i]=autn_enb[6+i];
|
||||
}
|
||||
|
||||
// Generate cdout
|
||||
for(i=0; i<6; i++) {
|
||||
|
|
Loading…
Reference in New Issue