Searched refs:kek (Results 1 - 9 of 9) sorted by relevance

/freebsd-9.3-release/contrib/wpa/src/crypto/
H A Daes-unwrap.c24 * @kek: Key encryption key (KEK)
31 int aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain) argument
42 ctx = aes_decrypt_init(kek, 16);
H A Daes-wrap.c24 * @kek: 16-octet Key encryption key (KEK)
31 int aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher) argument
44 ctx = aes_encrypt_init(kek, 16);
H A Daes_wrap.h25 int __must_check aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher);
26 int __must_check aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain);
/freebsd-9.3-release/crypto/openssl/crypto/aes/
H A Daes_wrap.c137 int AES_wrap_unwrap_test(const unsigned char *kek, int keybits, argument
149 if (AES_set_encrypt_key(kek, keybits, &wctx))
158 if (AES_set_decrypt_key(kek, keybits, &wctx))
180 static const unsigned char kek[] = { local
236 ret = AES_wrap_unwrap_test(kek, 128, NULL, e1, key, 16);
238 ret = AES_wrap_unwrap_test(kek, 192, NULL, e2, key, 16);
240 ret = AES_wrap_unwrap_test(kek, 256, NULL, e3, key, 16);
242 ret = AES_wrap_unwrap_test(kek, 192, NULL, e4, key, 24);
244 ret = AES_wrap_unwrap_test(kek, 256, NULL, e5, key, 24);
246 ret = AES_wrap_unwrap_test(kek, 25
[all...]
/freebsd-9.3-release/contrib/wpa/src/common/
H A Dwpa_common.h169 u8 kek[16]; /* EAPOL-Key Key Encryption Key (KEK) */ member in struct:wpa_ptk
/freebsd-9.3-release/contrib/wpa/src/rsn_supp/
H A Dwpa.c1234 os_memcpy(ek + 16, sm->ptk.kek, 16);
1259 if (aes_unwrap(sm->ptk.kek, maxkeylen / 8,
1435 os_memcpy(ek + 16, sm->ptk.kek, 16);
1455 if (aes_unwrap(sm->ptk.kek, keydatalen / 8,
H A Dwpa_ft.c748 if (aes_unwrap(sm->ptk.kek, gtk_len / 8, gtk_elem + 11, gtk)) {
839 if (aes_unwrap(sm->ptk.kek, WPA_IGTK_LEN / 8, igtk_elem + 9, igtk)) {
/freebsd-9.3-release/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c456 if (aes_wrap(sm->PTK.kek, key_len / 8, key, subelem + 13)) {
488 if (aes_wrap(sm->PTK.kek, WPA_IGTK_LEN / 8,
H A Dwpa_auth.c1154 if (aes_wrap(sm->PTK.kek, (key_data_len - 8) / 8, buf,
1167 os_memcpy(ek + 16, sm->PTK.kek, 16);

Completed in 78 milliseconds