/third_party/openssl/crypto/modes/ |
D | ccm128.c | 78 (*block) (ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad() 81 ctx->cmac.c[0] ^= (u8)(alen >> 8); in CRYPTO_ccm128_aad() 82 ctx->cmac.c[1] ^= (u8)alen; in CRYPTO_ccm128_aad() 86 ctx->cmac.c[0] ^= 0xFF; in CRYPTO_ccm128_aad() 87 ctx->cmac.c[1] ^= 0xFF; in CRYPTO_ccm128_aad() 88 ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad() 89 ctx->cmac.c[3] ^= (u8)(alen >> (48 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad() 90 ctx->cmac.c[4] ^= (u8)(alen >> (40 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad() 91 ctx->cmac.c[5] ^= (u8)(alen >> (32 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad() 92 ctx->cmac.c[6] ^= (u8)(alen >> 24); in CRYPTO_ccm128_aad() [all …]
|
D | modes_local.h | 156 } nonce, cmac; member
|
/third_party/mbedtls/library/ |
D | psa_crypto_mac.c | 180 ret = mbedtls_cipher_setup( &operation->ctx.cmac, cipher_info ); in cmac_setup() 184 ret = mbedtls_cipher_cmac_starts( &operation->ctx.cmac, in cmac_setup() 208 mbedtls_cipher_init( &operation->ctx.cmac ); in mac_init() 245 mbedtls_cipher_free( &operation->ctx.cmac ); in mbedtls_psa_mac_abort() 358 mbedtls_cipher_cmac_update( &operation->ctx.cmac, in mbedtls_psa_mac_update() 388 int ret = mbedtls_cipher_cmac_finish( &operation->ctx.cmac, tmp ); in psa_mac_finish_internal()
|
D | Makefile | 92 cmac.o \
|
D | CMakeLists.txt | 28 cmac.c
|
/third_party/openssl/crypto/cmac/ |
D | build.info | 2 SOURCE[../../libcrypto]=cmac.c cm_ameth.c cm_pmeth.c
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
D | eap_fast.c | 780 u8 cmk[EAP_FAST_CMK_LEN], cmac[SHA1_MAC_LEN]; in eap_fast_process_crypto_binding() local 791 os_memcpy(cmac, _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding() 792 os_memset(_bind->compound_mac, 0, sizeof(cmac)); in eap_fast_process_crypto_binding() 797 res = os_memcmp_const(cmac, _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding() 799 cmac, sizeof(cmac)); in eap_fast_process_crypto_binding() 801 _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding() 804 os_memcpy(_bind->compound_mac, cmac, sizeof(cmac)); in eap_fast_process_crypto_binding()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
D | eap_fast.c | 760 u8 cmk[EAP_FAST_CMK_LEN], cmac[SHA1_MAC_LEN]; in eap_fast_process_crypto_binding() local 771 os_memcpy(cmac, _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding() 772 os_memset(_bind->compound_mac, 0, sizeof(cmac)); in eap_fast_process_crypto_binding() 777 res = os_memcmp_const(cmac, _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding() 779 cmac, sizeof(cmac)); in eap_fast_process_crypto_binding() 781 _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding() 784 os_memcpy(_bind->compound_mac, cmac, sizeof(cmac)); in eap_fast_process_crypto_binding()
|
/third_party/mbedtls/include/psa/ |
D | crypto_builtin_composites.h | 73 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cmac);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
D | eap_server_fast.c | 1198 u8 cmac[SHA1_MAC_LEN]; in eap_fast_validate_crypto_binding() local 1230 os_memcpy(cmac, b->compound_mac, sizeof(cmac)); in eap_fast_validate_crypto_binding() 1231 os_memset(b->compound_mac, 0, sizeof(cmac)); in eap_fast_validate_crypto_binding() 1237 if (os_memcmp_const(cmac, b->compound_mac, sizeof(cmac)) != 0) { in eap_fast_validate_crypto_binding() 1240 b->compound_mac, sizeof(cmac)); in eap_fast_validate_crypto_binding()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
D | eap_server_fast.c | 1184 u8 cmac[SHA1_MAC_LEN]; in eap_fast_validate_crypto_binding() local 1216 os_memcpy(cmac, b->compound_mac, sizeof(cmac)); in eap_fast_validate_crypto_binding() 1217 os_memset(b->compound_mac, 0, sizeof(cmac)); in eap_fast_validate_crypto_binding() 1223 if (os_memcmp_const(cmac, b->compound_mac, sizeof(cmac)) != 0) { in eap_fast_validate_crypto_binding() 1226 b->compound_mac, sizeof(cmac)); in eap_fast_validate_crypto_binding()
|
/third_party/openssl/crypto/aes/asm/ |
D | aesni-x86.pl | 661 { my $cmac=$inout1; 675 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac 709 &xorps ($cmac,$rndkey0); # cmac^=inp 714 &aesenc ($cmac,$rndkey1); 718 &aesenc ($cmac,$rndkey0); 722 &aesenc ($cmac,$rndkey1); 726 &aesenclast ($cmac,$rndkey0); 738 &movups (&QWP(0,$out),$cmac); 763 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac 816 &xorps ($cmac,$in0); # cmac^=out [all …]
|
D | aesni-x86_64.pl | 976 my $cmac="%r9"; # 6th argument 1006 movdqu ($cmac),$inout1 1051 movups $inout1,($cmac) # store resulting mac 1092 movdqu ($cmac),$inout1 1160 movups $inout1,($cmac) # store resulting mac
|
/third_party/openssl/include/openssl/ |
D | modes.h | 32 unsigned char cmac[16]);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_wolfssl.c | 967 Cmac cmac; in omac1_aes_vector() local 974 if (wc_InitCmac(&cmac, key, key_len, WC_CMAC_AES, NULL) != 0) in omac1_aes_vector() 978 if (wc_CmacUpdate(&cmac, addr[i], len[i]) != 0) in omac1_aes_vector() 982 if (wc_CmacFinal(&cmac, mac, &sz) != 0 || sz != AES_BLOCK_SIZE) in omac1_aes_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_wolfssl.c | 971 Cmac cmac; in omac1_aes_vector() local 978 if (wc_InitCmac(&cmac, key, key_len, WC_CMAC_AES, NULL) != 0) in omac1_aes_vector() 982 if (wc_CmacUpdate(&cmac, addr[i], len[i]) != 0) in omac1_aes_vector() 986 if (wc_CmacFinal(&cmac, mac, &sz) != 0 || sz != AES_BLOCK_SIZE) in omac1_aes_vector()
|
/third_party/mbedtls/ |
D | mbedtls.gni | 52 "$MBEDTLSDIR/library/cmac.c",
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_cmac.function | 3 #include "mbedtls/cmac.h"
|
/third_party/mbedtls/scripts/data_files/ |
D | query_config.fmt | 46 #include "mbedtls/cmac.h"
|
/third_party/openssl/ |
D | BUILD.gn | 312 "crypto/cmac/cm_ameth.c", 313 "crypto/cmac/cm_pmeth.c", 314 "crypto/cmac/cmac.c",
|
/third_party/mbedtls/tests/ |
D | CMakeLists.txt | 182 add_test_suite(cmac)
|
/third_party/openssl/test/ |
D | build.info | 464 IF[{- !$disabled{cmac} -}] 500 IF[{- !$disabled{cmac} -}]
|
/third_party/openssl/crypto/objects/ |
D | obj_mac.num | 894 cmac 894
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/ |
D | ieee802_1x_kay.c | 1836 u8 cmac[MAX_ICV_LEN]; in ieee802_1x_mka_encode_icv_body() local 1850 wpabuf_head(buf), wpabuf_len(buf), cmac)) { in ieee802_1x_mka_encode_icv_body() 1854 wpa_hexdump(MSG_DEBUG, "KaY: ICV", cmac, length); in ieee802_1x_mka_encode_icv_body() 1856 os_memcpy(wpabuf_put(buf, length), cmac, length); in ieee802_1x_mka_encode_icv_body()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/pae/ |
D | ieee802_1x_kay.c | 1873 u8 cmac[MAX_ICV_LEN]; in ieee802_1x_mka_encode_icv_body() local 1887 wpabuf_head(buf), wpabuf_len(buf), cmac)) { in ieee802_1x_mka_encode_icv_body() 1891 wpa_hexdump(MSG_DEBUG, "KaY: ICV", cmac, length); in ieee802_1x_mka_encode_icv_body() 1893 os_memcpy(wpabuf_put(buf, length), cmac, length); in ieee802_1x_mka_encode_icv_body()
|