Searched refs:md_size (Results 1 – 4 of 4) sorted by relevance
/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | pkcs5.c | 226 unsigned char md_size = mbedtls_md_get_size( ctx->md_info ); in mbedtls_pkcs5_pbkdf2_hmac() local 253 memcpy( md1, work, md_size ); in mbedtls_pkcs5_pbkdf2_hmac() 262 if( ( ret = mbedtls_md_hmac_update( ctx, md1, md_size ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac() 270 for( j = 0; j < md_size; j++ ) in mbedtls_pkcs5_pbkdf2_hmac() 274 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac()
|
D | hmac_drbg.c | 175 size_t entropy_len, md_size; in mbedtls_hmac_drbg_seed() local 180 md_size = mbedtls_md_get_size( md_info ); in mbedtls_hmac_drbg_seed() 187 mbedtls_md_hmac_starts( &ctx->md_ctx, ctx->V, md_size ); in mbedtls_hmac_drbg_seed() 188 memset( ctx->V, 0x01, md_size ); in mbedtls_hmac_drbg_seed() 202 entropy_len = md_size <= 20 ? 16 : /* 160-bits hash -> 128 bits */ in mbedtls_hmac_drbg_seed() 203 md_size <= 28 ? 24 : /* 224-bits hash -> 192 bits */ in mbedtls_hmac_drbg_seed()
|
D | ssl_tls.c | 1213 int md_size = mbedtls_md_get_size( md_ctx->md_info ); in ssl_mac() local 1229 mbedtls_md_update( md_ctx, secret, md_size ); in ssl_mac() 1237 mbedtls_md_update( md_ctx, secret, md_size ); in ssl_mac() 1239 mbedtls_md_update( md_ctx, buf + len, md_size ); in ssl_mac()
|
/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_md.function | 106 void md_info( int md_type, char *md_name, int md_size ) 117 TEST_ASSERT( mbedtls_md_get_size( md_info ) == (unsigned char) md_size );
|