Searched refs:hlen (Results 1 – 5 of 5) sorted by relevance
/net-tools-latest/mbedtls-2.4.0/library/ |
D | rsa.c | 470 unsigned int hlen; in mgf_mask() local 476 hlen = mbedtls_md_get_size( md_ctx->md_info ); in mgf_mask() 483 use_len = hlen; in mgf_mask() 484 if( dlen < hlen ) in mgf_mask() 518 unsigned int hlen; in mbedtls_rsa_rsaes_oaep_encrypt() local 533 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt() 536 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt() 544 if( ( ret = f_rng( p_rng, p, hlen ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt() 547 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt() 551 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt() [all …]
|
D | pkcs12.c | 262 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local 279 hlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs12_derivation() 281 if( hlen <= 32 ) in mbedtls_pkcs12_derivation() 313 if( ( ret = mbedtls_md( md_info, hash_output, hlen, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation() 317 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation() 326 pkcs12_fill_buffer( hash_block, v, hash_output, hlen ); in mbedtls_pkcs12_derivation()
|
D | ecdsa.c | 309 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature() argument 325 hash, hlen, md_alg ) ); in mbedtls_ecdsa_write_signature() 330 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature() 345 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature_det() argument 349 return( mbedtls_ecdsa_write_signature( ctx, md_alg, hash, hlen, sig, slen, in mbedtls_ecdsa_write_signature_det() 358 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_read_signature() argument 391 if( ( ret = mbedtls_ecdsa_verify( &ctx->grp, hash, hlen, in mbedtls_ecdsa_read_signature()
|
/net-tools-latest/mbedtls-2.4.0/include/mbedtls/ |
D | ecdsa.h | 144 const unsigned char *hash, size_t hlen, 180 const unsigned char *hash, size_t hlen, 203 const unsigned char *hash, size_t hlen,
|
/net-tools-latest/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecdsa.function | 51 size_t hlen; 66 hlen = unhexify(hash, hash_str); 82 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, hash, hlen, 88 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, hash, hlen, &Q, &r_check, &s_check ) == 0 ); 105 size_t hlen; 120 hlen = mbedtls_md_get_size( md_info ); 123 TEST_ASSERT( mbedtls_ecdsa_sign_det( &grp, &r, &s, &d, hash, hlen, md_alg ) == 0 );
|