UE/API/USIM: move OP to usim_keys_t

This commit is contained in:
Frédéric Leroy
2017-01-25 13:23:18 +01:00
parent 5b90bcbd25
commit 26538bb9e2
4 changed files with 38 additions and 50 deletions
+6 -6
View File
@@ -23,13 +23,13 @@ typedef unsigned char u8;
/*--------------------------- prototypes --------------------------*/
void f1 ( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2],
u8 mac_a[8] );
u8 mac_a[8], const u8 op[16]);
void f2345 ( u8 k[16], u8 rand[16],
u8 res[8], u8 ck[16], u8 ik[16], u8 ak[6] );
u8 res[8], u8 ck[16], u8 ik[16], u8 ak[6], const u8 op[16]);
void f1star( u8 k[16], u8 rand[16], u8 sqn[6], u8 amf[2],
u8 mac_s[8] );
u8 mac_s[8], const u8 op[16]);
void f5star( u8 k[16], u8 rand[16],
u8 ak[6] );
void ComputeOPc( u8 op_c[16] );
u8 ak[6], const u8 op[16]);
void ComputeOPc(const u8 op[16], u8 op_c_pP[16] );
void RijndaelKeySchedule( u8 key[16] );
void RijndaelEncrypt( u8 input[16], u8 output[16] );
void RijndaelEncrypt(const u8 input[16], u8 output[16] );