Searched refs:md_len (Results 1 – 2 of 2) sorted by relevance
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | hmac_drbg.c | 76 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_update() local 85 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_update() 92 mbedtls_md_hmac_starts( &ctx->md_ctx, K, md_len ); in mbedtls_hmac_drbg_update() 93 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_update() 255 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_random_with_add() local 285 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add() 288 mbedtls_md_hmac_update( &ctx->md_ctx, ctx->V, md_len ); in mbedtls_hmac_drbg_random_with_add()
|
D | ssl_tls.c | 374 size_t i, j, k, md_len; in tls_prf_generic() local 386 md_len = mbedtls_md_get_size( md_info ); in tls_prf_generic() 388 if( sizeof( tmp ) < md_len + strlen( label ) + rlen ) in tls_prf_generic() 392 memcpy( tmp + md_len, label, nb ); in tls_prf_generic() 393 memcpy( tmp + md_len + nb, random, rlen ); in tls_prf_generic() 403 mbedtls_md_hmac_update( &md_ctx, tmp + md_len, nb ); in tls_prf_generic() 406 for( i = 0; i < dlen; i += md_len ) in tls_prf_generic() 409 mbedtls_md_hmac_update( &md_ctx, tmp, md_len + nb ); in tls_prf_generic() 413 mbedtls_md_hmac_update( &md_ctx, tmp, md_len ); in tls_prf_generic() 416 k = ( i + md_len > dlen ) ? dlen % md_len : md_len; in tls_prf_generic()
|