/external/python/cryptography/tests/hazmat/primitives/ |
D | test_cmac.py | 18 from cryptography.hazmat.primitives.cmac import CMAC 55 cmac = CMAC(AES(binascii.unhexlify(key)), backend) 56 cmac.update(binascii.unhexlify(message)) 57 assert binascii.hexlify(cmac.finalize()) == output 70 cmac = CMAC(AES(binascii.unhexlify(key)), backend) 71 cmac.update(binascii.unhexlify(message)) 72 assert cmac.verify(binascii.unhexlify(output)) is None 90 cmac = CMAC(TripleDES(binascii.unhexlify(key)), backend) 91 cmac.update(binascii.unhexlify(message)) 92 assert binascii.hexlify(cmac.finalize()) == output [all …]
|
/external/boringssl/src/crypto/cipher_extra/ |
D | e_aesccm.c | 71 } nonce, cmac; member 118 (*block)(state->nonce.c, state->cmac.c, key); in ccm128_init_state() 126 state->cmac.c[0] ^= (uint8_t)(aad_len_u64 >> 8); in ccm128_init_state() 127 state->cmac.c[1] ^= (uint8_t)aad_len_u64; in ccm128_init_state() 130 state->cmac.c[0] ^= 0xff; in ccm128_init_state() 131 state->cmac.c[1] ^= 0xfe; in ccm128_init_state() 132 state->cmac.c[2] ^= (uint8_t)(aad_len_u64 >> 24); in ccm128_init_state() 133 state->cmac.c[3] ^= (uint8_t)(aad_len_u64 >> 16); in ccm128_init_state() 134 state->cmac.c[4] ^= (uint8_t)(aad_len_u64 >> 8); in ccm128_init_state() 135 state->cmac.c[5] ^= (uint8_t)aad_len_u64; in ccm128_init_state() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/cipher_extra/ |
D | e_aesccm.c | 71 } nonce, cmac; member 118 (*block)(state->nonce.c, state->cmac.c, key); in ccm128_init_state() 126 state->cmac.c[0] ^= (uint8_t)(aad_len_u64 >> 8); in ccm128_init_state() 127 state->cmac.c[1] ^= (uint8_t)aad_len_u64; in ccm128_init_state() 130 state->cmac.c[0] ^= 0xff; in ccm128_init_state() 131 state->cmac.c[1] ^= 0xfe; in ccm128_init_state() 132 state->cmac.c[2] ^= (uint8_t)(aad_len_u64 >> 24); in ccm128_init_state() 133 state->cmac.c[3] ^= (uint8_t)(aad_len_u64 >> 16); in ccm128_init_state() 134 state->cmac.c[4] ^= (uint8_t)(aad_len_u64 >> 8); in ccm128_init_state() 135 state->cmac.c[5] ^= (uint8_t)aad_len_u64; in ccm128_init_state() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ |
D | CryptCmac.c | 63 tpmCmacState_t *cState = &state->state.cmac; in CryptCmacStart() 97 tpmCmacState_t *cmacState = &state->cmac; in CryptCmacData() 136 tpmCmacState_t *cState = &state->cmac; in CryptCmacEnd()
|
/external/python/cryptography/docs/hazmat/primitives/mac/ |
D | cmac.rst | 6 .. currentmodule:: cryptography.hazmat.primitives.cmac 30 >>> from cryptography.hazmat.primitives import cmac 32 >>> c = cmac.CMAC(algorithms.AES(key), backend=default_backend()) 50 >>> c = cmac.CMAC(algorithms.AES(key), backend=default_backend())
|
D | index.rst | 44 …es for CMAC vs. HMAC?`: https://crypto.stackexchange.com/questions/15721/use-cases-for-cmac-vs-hmac 49 cmac
|
/external/rust/crates/quiche/deps/boringssl/src/ |
D | sources.cmake | 41 crypto/cmac/cavp_3des_cmac_tests.txt 42 crypto/cmac/cavp_aes128_cmac_tests.txt 43 crypto/cmac/cavp_aes192_cmac_tests.txt 44 crypto/cmac/cavp_aes256_cmac_tests.txt
|
/external/boringssl/src/ |
D | sources.cmake | 44 crypto/cmac/cavp_3des_cmac_tests.txt 45 crypto/cmac/cavp_aes128_cmac_tests.txt 46 crypto/cmac/cavp_aes192_cmac_tests.txt 47 crypto/cmac/cavp_aes256_cmac_tests.txt
|
/external/wpa_supplicant_8/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()
|
/external/openscreen/third_party/boringssl/ |
D | BUILD.generated_tests.gni | 40 "src/crypto/cmac/cmac_test.cc", 132 "src/crypto/cmac/cavp_3des_cmac_tests.txt", 133 "src/crypto/cmac/cavp_aes128_cmac_tests.txt", 134 "src/crypto/cmac/cavp_aes192_cmac_tests.txt", 135 "src/crypto/cmac/cavp_aes256_cmac_tests.txt",
|
D | BUILD.generated.gni | 76 "src/crypto/cmac/cmac.c", 314 "src/include/openssl/cmac.h",
|
/external/boringssl/src/crypto/fipsmodule/aes/asm/ |
D | aesni-x86.pl | 667 { my $cmac=$inout1; 681 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac 715 &xorps ($cmac,$rndkey0); # cmac^=inp 720 &aesenc ($cmac,$rndkey1); 724 &aesenc ($cmac,$rndkey0); 728 &aesenc ($cmac,$rndkey1); 732 &aesenclast ($cmac,$rndkey0); 744 &movups (&QWP(0,$out),$cmac); 769 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac 822 &xorps ($cmac,$in0); # cmac^=out [all …]
|
/external/python/cryptography/tests/wycheproof/ |
D | test_cmac.py | 14 from cryptography.hazmat.primitives.cmac import CMAC
|
/external/boringssl/ |
D | BUILD.generated_tests.bzl | 89 "src/crypto/cmac/cmac_test.cc", 189 "src/crypto/cmac/cavp_3des_cmac_tests.txt", 190 "src/crypto/cmac/cavp_aes128_cmac_tests.txt", 191 "src/crypto/cmac/cavp_aes192_cmac_tests.txt", 192 "src/crypto/cmac/cavp_aes256_cmac_tests.txt",
|
D | sources.bp | 83 "src/crypto/cmac/cmac.c", 441 "src/crypto/cmac/cmac_test.cc",
|
D | sources.mk | 81 src/crypto/cmac/cmac.c\
|
D | eureka.mk | 81 src/crypto/cmac/cmac.c\
|
/external/wpa_supplicant_8/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()
|
/external/boringssl/src/util/ |
D | doc.config | 27 "include/openssl/cmac.h",
|
/external/ms-tpm-20-ref/TPMCmd/tpm/include/ |
D | CryptHash.h | 81 tpmCmacState_t cmac; member
|
/external/boringssl/src/crypto/ |
D | CMakeLists.txt | 264 cmac/cmac.c 503 cmac/cmac_test.cc
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/ |
D | CMakeLists.txt | 257 cmac/cmac.c 495 cmac/cmac_test.cc
|
/external/wpa_supplicant_8/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()
|
/external/nos/host/generic/nugget/proto/nugget/app/protoapi/ |
D | testing_api.proto | 350 bytes cmac = 2; field
|
/external/boringssl/src/crypto/obj/ |
D | obj_mac.num | 885 cmac 894
|