/third_party/openssl/crypto/pkcs12/ |
D | p12_mutl.c | 71 unsigned char *mac, unsigned int *maclen, in pkcs12_gen_mac() argument 132 || !HMAC_Final(hmac, mac, maclen)) { in pkcs12_gen_mac() 144 unsigned char *mac, unsigned int *maclen) in PKCS12_gen_mac() argument 146 return pkcs12_gen_mac(p12, pass, passlen, mac, maclen, NULL); in PKCS12_gen_mac() 153 unsigned int maclen; in PKCS12_verify_mac() local 160 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, in PKCS12_verify_mac() 166 if ((maclen != (unsigned int)ASN1_STRING_length(macoct)) in PKCS12_verify_mac() 167 || CRYPTO_memcmp(mac, ASN1_STRING_get0_data(macoct), maclen) != 0) in PKCS12_verify_mac() 180 unsigned int maclen; in PKCS12_set_mac() local 192 if (!pkcs12_gen_mac(p12, pass, passlen, mac, &maclen, in PKCS12_set_mac() [all …]
|
D | p12_npas.c | 67 unsigned int maclen; in newpass_p12() local 111 if (!PKCS12_gen_mac(p12, newpass, -1, mac, &maclen)) in newpass_p12() 114 if (!ASN1_OCTET_STRING_set(macoct, mac, maclen)) in newpass_p12()
|
/third_party/mbedtls/library/ |
D | ssl_msg.c | 659 if( post_avail < transform->maclen ) in mbedtls_ssl_encrypt_buf() 686 memcpy( data + rec->data_len, mac, transform->maclen ); in mbedtls_ssl_encrypt_buf() 690 transform->maclen ); in mbedtls_ssl_encrypt_buf() 692 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf() 693 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf() 697 mbedtls_platform_zeroize( mac, transform->maclen ); in mbedtls_ssl_encrypt_buf() 931 if( post_avail < transform->maclen) in mbedtls_ssl_encrypt_buf() 960 memcpy( data + rec->data_len, mac, transform->maclen ); in mbedtls_ssl_encrypt_buf() 962 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf() 963 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf() [all …]
|
D | ssl_misc.h | 907 size_t maclen; /*!< MAC(CBC) len */ member 953 return( transform->maclen == 0 && transform->taglen != 0 ); in mbedtls_ssl_transform_uses_aead()
|
D | ssl_tls.c | 828 transform->maclen = 0; in ssl_tls12_populate_transform() 867 transform->maclen = mac_key_len; in ssl_tls12_populate_transform() 874 transform->minlen = transform->maclen; in ssl_tls12_populate_transform() 886 transform->minlen = transform->maclen in ssl_tls12_populate_transform() 892 transform->minlen = transform->maclen in ssl_tls12_populate_transform() 894 - transform->maclen % cipher_info->block_size; in ssl_tls12_populate_transform() 922 (unsigned) transform->maclen ) ); in ssl_tls12_populate_transform()
|
D | ssl_tls13_keys.c | 905 transform->maclen = 0; in mbedtls_ssl_tls13_populate_transform()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_ssl.function | 1199 size_t keylen, maclen, ivlen; 1215 maclen = 0; 1274 maclen = mbedtls_md_get_size( md_info ); 1275 CHK( ( md0 = mbedtls_calloc( 1, maclen ) ) != NULL ); 1276 CHK( ( md1 = mbedtls_calloc( 1, maclen ) ) != NULL ); 1277 memset( md0, 0x5, maclen ); 1278 memset( md1, 0x6, maclen ); 1286 md0, maclen ) == 0 ); 1288 md1, maclen ) == 0 ); 1290 md1, maclen ) == 0 ); [all …]
|
/third_party/libnl/lib/route/cls/ |
D | ematch_grammar.l | 120 maclen return META_MACLEN;
|
/third_party/openssl/test/ |
D | evp_extra_test.c | 1863 size_t maclen = 0; in test_signatures_with_engine() local 1928 || !TEST_true(EVP_DigestSignFinal(ctx, NULL, &maclen))) in test_signatures_with_engine() 1931 if (!TEST_ptr(mac = OPENSSL_malloc(maclen))) in test_signatures_with_engine() 1934 if (!TEST_true(EVP_DigestSignFinal(ctx, mac, &maclen))) in test_signatures_with_engine()
|
/third_party/openssl/include/openssl/ |
D | pkcs12.h | 173 unsigned char *mac, unsigned int *maclen);
|
/third_party/libcoap/src/ |
D | coap_openssl.c | 3117 unsigned int ivlen, maclen, blocksize = 1, pad = 0; in coap_dtls_get_overhead() local 3128 maclen = EVP_GCM_TLS_TAG_LEN; in coap_dtls_get_overhead() 3135 maclen = 8; in coap_dtls_get_overhead() 3137 maclen = 16; in coap_dtls_get_overhead() 3145 maclen = EVP_MD_size(e_md); in coap_dtls_get_overhead() 3151 maclen = 8; in coap_dtls_get_overhead() 3159 maclen = 16; in coap_dtls_get_overhead() 3162 overhead = DTLS1_RT_HEADER_LENGTH + ivlen + maclen + blocksize - 1 + pad; in coap_dtls_get_overhead()
|
/third_party/libnl/lib/route/cls/ematch/ |
D | meta.c | 180 __ADD(TCF_META_ID_MACLEN, maclen),
|