Home
last modified time | relevance | path

Searched refs:md_size (Results 1 – 4 of 4) sorted by relevance

/mbedtls-3.4.0/library/
Dpkcs5.c218 unsigned char md_size = mbedtls_md_get_size( ctx->md_info ); in pkcs5_pbkdf2_hmac() local
249 memcpy( md1, work, md_size ); in pkcs5_pbkdf2_hmac()
255 if( ( ret = mbedtls_md_hmac_update( ctx, md1, md_size ) ) != 0 ) in pkcs5_pbkdf2_hmac()
266 for( j = 0; j < md_size; j++ ) in pkcs5_pbkdf2_hmac()
270 use_len = ( key_length < md_size ) ? key_length : md_size; in pkcs5_pbkdf2_hmac()
331 const unsigned char md_size = mbedtls_hash_info_get_size( md_alg ); in mbedtls_pkcs5_pbkdf2_hmac_ext()
392 if( ( status = psa_mac_update( &operation, md1, md_size ) ) != PSA_SUCCESS ) in mbedtls_pkcs5_pbkdf2_hmac_ext()
399 for( j = 0; j < md_size; j++ ) in mbedtls_pkcs5_pbkdf2_hmac_ext()
403 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac_ext()
Dhmac_drbg.c236 size_t md_size; in mbedtls_hmac_drbg_seed() local
246 md_size = mbedtls_md_get_size( md_info ); in mbedtls_hmac_drbg_seed()
253 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, md_size ) ) != 0 ) in mbedtls_hmac_drbg_seed()
255 memset( ctx->V, 0x01, md_size ); in mbedtls_hmac_drbg_seed()
269 ctx->entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed()
270 md_size <= 28 ? 24 : /* 224-bits hash -> 192 bits */ in mbedtls_hmac_drbg_seed()
Drsa.c1772 unsigned char md_size = mbedtls_hash_info_get_size( md_alg ); in rsa_rsassa_pkcs1_v15_encode() local
1773 if( md_size == 0 ) in rsa_rsassa_pkcs1_v15_encode()
1779 if( hashlen != md_size ) in rsa_rsassa_pkcs1_v15_encode()
/mbedtls-3.4.0/tests/suites/
Dtest_suite_md.function110 void md_info( int md_type, char * md_name, int md_size )
121 TEST_ASSERT( mbedtls_md_get_size( md_info ) == (unsigned char) md_size );