Lines Matching full:ck
82 * @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
89 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar) in milenage_f2345() argument
121 if (ck) { in milenage_f2345()
126 if (aes_128_encrypt_block(k, tmp1, ck)) in milenage_f2345()
129 ck[i] ^= opc[i]; in milenage_f2345()
161 * milenage_generate - Generate AKA AUTN,IK,CK,RES
169 * @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
175 u8 *ck, u8 *res, size_t *res_len) in milenage_generate() argument
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) { in milenage_generate()
237 u8 res[8], ck[16], ik[16]; in gsm_milenage() local
240 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL)) in gsm_milenage()
244 kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8]; in gsm_milenage()
257 * milenage_generate - Generate AKA AUTN,IK,CK,RES
264 * @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
271 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len, in milenage_check() argument
281 if (milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) in milenage_check()
286 wpa_hexdump_key(MSG_DEBUG, "Milenage: CK", ck, 16); in milenage_check()