/third_party/mbedtls/tests/src/drivers/ |
D | test_driver_mac.c | 42 size_t mac_size, in mbedtls_test_transparent_mac_compute() argument 61 mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_compute() 67 mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_compute() 76 (void) mac_size; in mbedtls_test_transparent_mac_compute() 202 size_t mac_size, in mbedtls_test_transparent_mac_sign_finish() argument 218 operation, mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_sign_finish() 222 operation, mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_sign_finish() 226 (void) mac_size; in mbedtls_test_transparent_mac_sign_finish() 305 size_t mac_size, in mbedtls_test_opaque_mac_compute() argument 324 (void) mac_size; in mbedtls_test_opaque_mac_compute() [all …]
|
/third_party/mbedtls/library/ |
D | psa_crypto_mac.c | 117 size_t mac_size ) in psa_hmac_finish_internal() argument 146 memcpy( mac, tmp, mac_size ); in psa_hmac_finish_internal() 382 uint8_t *mac, size_t mac_size ) in psa_mac_finish_internal() argument 390 memcpy( mac, tmp, mac_size ); in psa_mac_finish_internal() 400 mac, mac_size ) ); in psa_mac_finish_internal() 409 (void) mac_size; in psa_mac_finish_internal() 417 size_t mac_size, in mbedtls_psa_mac_sign_finish() argument 425 status = psa_mac_finish_internal( operation, mac, mac_size ); in mbedtls_psa_mac_sign_finish() 427 *mac_length = mac_size; in mbedtls_psa_mac_sign_finish() 468 size_t mac_size, in mbedtls_psa_mac_compute() argument [all …]
|
D | psa_crypto_mac.h | 66 size_t mac_size, 209 size_t mac_size,
|
D | psa_crypto.c | 2290 operation->mac_size = 0; in psa_mac_abort() 2300 uint8_t *mac_size ) in psa_mac_finalize_alg_and_key_validation() argument 2315 *mac_size = PSA_MAC_LENGTH( key_type, key_bits, alg ); in psa_mac_finalize_alg_and_key_validation() 2317 if( *mac_size < 4 ) in psa_mac_finalize_alg_and_key_validation() 2326 if( *mac_size > PSA_MAC_LENGTH( key_type, key_bits, in psa_mac_finalize_alg_and_key_validation() 2364 &operation->mac_size ); in psa_mac_setup() 2432 size_t mac_size, in psa_mac_sign_finish() argument 2452 if( operation->mac_size == 0 ) in psa_mac_sign_finish() 2458 if( mac_size < operation->mac_size ) in psa_mac_sign_finish() 2465 mac, operation->mac_size, in psa_mac_sign_finish() [all …]
|
D | psa_crypto_driver_wrappers.c | 2005 size_t mac_size, in psa_driver_wrapper_mac_compute() argument 2022 mac, mac_size, mac_length ); in psa_driver_wrapper_mac_compute() 2033 mac, mac_size, mac_length ); in psa_driver_wrapper_mac_compute() 2046 mac, mac_size, mac_length ); in psa_driver_wrapper_mac_compute() 2058 (void) mac_size; in psa_driver_wrapper_mac_compute() 2245 size_t mac_size, in psa_driver_wrapper_mac_sign_finish() argument 2253 mac, mac_size, mac_length ) ); in psa_driver_wrapper_mac_sign_finish() 2261 mac, mac_size, mac_length ) ); in psa_driver_wrapper_mac_sign_finish() 2266 mac, mac_size, mac_length ) ); in psa_driver_wrapper_mac_sign_finish() 2271 (void) mac_size; in psa_driver_wrapper_mac_sign_finish()
|
D | psa_crypto_driver_wrappers.h | 296 size_t mac_size, 321 size_t mac_size,
|
/third_party/openssl/ssl/record/ |
D | ssl3_record.c | 184 size_t mac_size; in ssl3_get_record() local 507 mac_size = (size_t)imac_size; in ssl3_get_record() 511 if (thisrr->length < mac_size) { in ssl3_get_record() 516 thisrr->length -= mac_size; in ssl3_get_record() 519 if (i == 0 || CRYPTO_memcmp(md, mac, mac_size) != 0) { in ssl3_get_record() 584 mac_size = EVP_MD_CTX_size(s->read_hash); in ssl3_get_record() 585 if (!ossl_assert(mac_size <= EVP_MAX_MD_SIZE)) { in ssl3_get_record() 599 if (thisrr->orig_len < mac_size || in ssl3_get_record() 602 thisrr->orig_len < mac_size + 1)) { in ssl3_get_record() 616 if (!ssl3_cbc_copy_mac(mac_tmp, thisrr, mac_size)) { in ssl3_get_record() [all …]
|
D | rec_layer_d1.c | 804 int i, mac_size, clear = 0; in do_dtls1_write() local 847 mac_size = 0; in do_dtls1_write() 849 mac_size = EVP_MD_CTX_size(s->write_hash); in do_dtls1_write() 850 if (mac_size < 0) { in do_dtls1_write() 927 if (!SSL_WRITE_ETM(s) && mac_size != 0) { in do_dtls1_write() 935 SSL3_RECORD_add_length(&wr, mac_size); in do_dtls1_write() 953 if (SSL_WRITE_ETM(s) && mac_size != 0) { in do_dtls1_write() 960 SSL3_RECORD_add_length(&wr, mac_size); in do_dtls1_write()
|
D | rec_layer_s3.c | 661 int i, mac_size, clear = 0; in do_ssl3_write() local 706 mac_size = 0; in do_ssl3_write() 709 mac_size = EVP_MD_CTX_size(s->write_hash); in do_ssl3_write() 710 if (mac_size < 0) { in do_ssl3_write() 962 if (!SSL_WRITE_ETM(s) && mac_size != 0) { in do_ssl3_write() 965 if (!WPACKET_allocate_bytes(thispkt, mac_size, &mac) in do_ssl3_write() 1037 if (SSL_WRITE_ETM(s) && mac_size != 0) { in do_ssl3_write() 1040 if (!WPACKET_allocate_bytes(thispkt, mac_size, &mac) in do_ssl3_write() 1046 SSL3_RECORD_add_length(thiswr, mac_size); in do_ssl3_write()
|
D | record_local.h | 110 size_t block_size, size_t mac_size); 113 size_t block_size, size_t mac_size);
|
/third_party/mbedtls/tests/include/test/drivers/ |
D | mac.h | 56 size_t mac_size, 81 size_t mac_size, 100 size_t mac_size, 125 size_t mac_size,
|
/third_party/openssl/ssl/statem/ |
D | statem_dtls.c | 118 size_t len, frag_off, mac_size, blocksize, used_len; in dtls1_do_write() local 137 mac_size = 0; in dtls1_do_write() 139 mac_size = EVP_MD_CTX_size(s->write_hash); in dtls1_do_write() 141 mac_size = 0; in dtls1_do_write() 189 + mac_size + blocksize; in dtls1_do_write() 204 used_len = DTLS1_RT_HEADER_LENGTH + mac_size + blocksize; in dtls1_do_write()
|
/third_party/mbedtls/include/psa/ |
D | crypto_se_driver.h | 222 size_t mac_size, 277 size_t mac_size,
|
D | crypto.h | 1230 size_t mac_size, 1519 size_t mac_size,
|
D | crypto_struct.h | 139 uint8_t MBEDTLS_PRIVATE(mac_size);
|