Lines Matching refs:ck
82 * @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
89 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar)
121 if (ck) {
126 if (aes_128_encrypt_block(k, tmp1, ck))
129 ck[i] ^= opc[i];
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)
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) {
237 u8 res[8], ck[16], ik[16];
240 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL))
244 kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8];
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,
281 if (milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL))
286 wpa_hexdump_key(MSG_DEBUG, "Milenage: CK", ck, 16);