Home
last modified time | relevance | path

Searched refs:cmac (Results 1 – 25 of 35) sorted by relevance

12

/third_party/openssl/crypto/modes/
Dccm128.c78 (*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 …]
Dmodes_local.h156 } nonce, cmac; member
/third_party/mbedtls/library/
Dpsa_crypto_mac.c180 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()
DMakefile92 cmac.o \
DCMakeLists.txt28 cmac.c
/third_party/openssl/crypto/cmac/
Dbuild.info2 SOURCE[../../libcrypto]=cmac.c cm_ameth.c cm_pmeth.c
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap_fast.c780 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/
Deap_fast.c760 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/
Dcrypto_builtin_composites.h73 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cmac);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
Deap_server_fast.c1198 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/
Deap_server_fast.c1184 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/
Daesni-x86.pl661 { 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 …]
Daesni-x86_64.pl976 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/
Dmodes.h32 unsigned char cmac[16]);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_wolfssl.c967 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/
Dcrypto_wolfssl.c971 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/
Dmbedtls.gni52 "$MBEDTLSDIR/library/cmac.c",
/third_party/mbedtls/tests/suites/
Dtest_suite_cmac.function3 #include "mbedtls/cmac.h"
/third_party/mbedtls/scripts/data_files/
Dquery_config.fmt46 #include "mbedtls/cmac.h"
/third_party/openssl/
DBUILD.gn312 "crypto/cmac/cm_ameth.c",
313 "crypto/cmac/cm_pmeth.c",
314 "crypto/cmac/cmac.c",
/third_party/mbedtls/tests/
DCMakeLists.txt182 add_test_suite(cmac)
/third_party/openssl/test/
Dbuild.info464 IF[{- !$disabled{cmac} -}]
500 IF[{- !$disabled{cmac} -}]
/third_party/openssl/crypto/objects/
Dobj_mac.num894 cmac 894
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/
Dieee802_1x_kay.c1836 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/
Dieee802_1x_kay.c1873 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()

12