Home
last modified time | relevance | path

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

12

/external/python/cryptography/tests/hazmat/primitives/
Dtest_cmac.py18 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/
De_aesccm.c71 } 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/
De_aesccm.c71 } 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/
DCryptCmac.c63 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/
Dcmac.rst6 .. 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())
Dindex.rst44 …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/
Dsources.cmake41 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/
Dsources.cmake44 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/
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()
/external/openscreen/third_party/boringssl/
DBUILD.generated_tests.gni40 "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",
DBUILD.generated.gni76 "src/crypto/cmac/cmac.c",
314 "src/include/openssl/cmac.h",
/external/boringssl/src/crypto/fipsmodule/aes/asm/
Daesni-x86.pl667 { 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/
Dtest_cmac.py14 from cryptography.hazmat.primitives.cmac import CMAC
/external/boringssl/
DBUILD.generated_tests.bzl89 "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",
Dsources.bp83 "src/crypto/cmac/cmac.c",
441 "src/crypto/cmac/cmac_test.cc",
Dsources.mk81 src/crypto/cmac/cmac.c\
Deureka.mk81 src/crypto/cmac/cmac.c\
/external/wpa_supplicant_8/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()
/external/boringssl/src/util/
Ddoc.config27 "include/openssl/cmac.h",
/external/ms-tpm-20-ref/TPMCmd/tpm/include/
DCryptHash.h81 tpmCmacState_t cmac; member
/external/boringssl/src/crypto/
DCMakeLists.txt264 cmac/cmac.c
503 cmac/cmac_test.cc
/external/rust/crates/quiche/deps/boringssl/src/crypto/
DCMakeLists.txt257 cmac/cmac.c
495 cmac/cmac_test.cc
/external/wpa_supplicant_8/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()
/external/nos/host/generic/nugget/proto/nugget/app/protoapi/
Dtesting_api.proto350 bytes cmac = 2; field
/external/boringssl/src/crypto/obj/
Dobj_mac.num885 cmac 894

12