Home
last modified time | relevance | path

Searched refs:md_len (Results 1 – 2 of 2) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dhmac_drbg.c66 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_update_ret() local
78 ctx->V, md_len ) ) != 0 ) in mbedtls_hmac_drbg_update_ret()
93 if( ( ret = mbedtls_md_hmac_starts( &ctx->md_ctx, K, md_len ) ) != 0 ) in mbedtls_hmac_drbg_update_ret()
96 ctx->V, md_len ) ) != 0 ) in mbedtls_hmac_drbg_update_ret()
334 size_t md_len = mbedtls_md_get_size( ctx->md_ctx.md_info ); in mbedtls_hmac_drbg_random_with_add() local
368 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add()
373 ctx->V, md_len ) ) != 0 ) in mbedtls_hmac_drbg_random_with_add()
A Dssl_tls.c694 size_t i, j, k, md_len; in tls_prf_generic() local
707 md_len = mbedtls_md_get_size( md_info ); in tls_prf_generic()
709 tmp_len = md_len + strlen( label ) + rlen; in tls_prf_generic()
718 memcpy( tmp + md_len, label, nb ); in tls_prf_generic()
719 memcpy( tmp + md_len + nb, random, rlen ); in tls_prf_generic()
731 ret = mbedtls_md_hmac_update( &md_ctx, tmp + md_len, nb ); in tls_prf_generic()
738 for( i = 0; i < dlen; i += md_len ) in tls_prf_generic()
743 ret = mbedtls_md_hmac_update( &md_ctx, tmp, md_len + nb ); in tls_prf_generic()
753 ret = mbedtls_md_hmac_update( &md_ctx, tmp, md_len ); in tls_prf_generic()
760 k = ( i + md_len > dlen ) ? dlen % md_len : md_len; in tls_prf_generic()

Completed in 14 milliseconds