Home
last modified time | relevance | path

Searched refs:mac_size (Results 1 – 15 of 15) sorted by relevance

/third_party/mbedtls/tests/src/drivers/
Dtest_driver_mac.c42 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/
Dpsa_crypto_mac.c117 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 …]
Dpsa_crypto_mac.h66 size_t mac_size,
209 size_t mac_size,
Dpsa_crypto.c2290 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 …]
Dpsa_crypto_driver_wrappers.c2005 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()
Dpsa_crypto_driver_wrappers.h296 size_t mac_size,
321 size_t mac_size,
/third_party/openssl/ssl/record/
Dssl3_record.c184 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 …]
Drec_layer_d1.c804 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()
Drec_layer_s3.c661 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()
Drecord_local.h110 size_t block_size, size_t mac_size);
113 size_t block_size, size_t mac_size);
/third_party/mbedtls/tests/include/test/drivers/
Dmac.h56 size_t mac_size,
81 size_t mac_size,
100 size_t mac_size,
125 size_t mac_size,
/third_party/openssl/ssl/statem/
Dstatem_dtls.c118 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/
Dcrypto_se_driver.h222 size_t mac_size,
277 size_t mac_size,
Dcrypto.h1230 size_t mac_size,
1519 size_t mac_size,
Dcrypto_struct.h139 uint8_t MBEDTLS_PRIVATE(mac_size);