/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | rsa.c | 1110 unsigned int hlen; in mgf_mask() local 1193 if( ilen + 2 * hlen + 2 < ilen || olen < ilen + 2 * hlen + 2 ) in mbedtls_rsa_rsaes_oaep_encrypt() 1204 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt() 1209 p += hlen; in mbedtls_rsa_rsaes_oaep_encrypt() 1220 if( ( ret = mgf_mask( output + hlen + 1, olen - hlen - 1, output + 1, hlen, in mbedtls_rsa_rsaes_oaep_encrypt() 1225 if( ( ret = mgf_mask( output + 1, hlen, output + hlen + 1, olen - hlen - 1, in mbedtls_rsa_rsaes_oaep_encrypt() 1427 if( ( ret = mgf_mask( buf + 1, hlen, buf + hlen + 1, ilen - hlen - 1, in mbedtls_rsa_rsaes_oaep_decrypt() 1430 ( ret = mgf_mask( buf + hlen + 1, ilen - hlen - 1, buf + 1, hlen, in mbedtls_rsa_rsaes_oaep_decrypt() 1866 else if( olen >= hlen + hlen + 2 ) in rsa_rsassa_pss_sign() 1922 p += hlen; in rsa_rsassa_pss_sign() [all …]
|
A D | ssl_tls13_keys.c | 294 size_t hlen, ilen; in mbedtls_ssl_tls1_3_evolve_secret() local 303 hlen = mbedtls_md_get_size( md ); in mbedtls_ssl_tls1_3_evolve_secret() 311 secret_old, hlen, in mbedtls_ssl_tls1_3_evolve_secret() 315 tmp_secret, hlen ); in mbedtls_ssl_tls1_3_evolve_secret() 327 ilen = hlen; in mbedtls_ssl_tls1_3_evolve_secret() 334 tmp_secret, hlen, in mbedtls_ssl_tls1_3_evolve_secret()
|
A D | pkcs12.c | 257 size_t hlen, use_len, v, i; in mbedtls_pkcs12_derivation() local 274 hlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs12_derivation() 276 if( hlen <= 32 ) in mbedtls_pkcs12_derivation() 308 if( ( ret = mbedtls_md( md_info, hash_output, hlen, hash_output ) ) != 0 ) in mbedtls_pkcs12_derivation() 312 use_len = ( datalen > hlen ) ? hlen : datalen; in mbedtls_pkcs12_derivation() 321 pkcs12_fill_buffer( hash_block, v, hash_output, hlen ); in mbedtls_pkcs12_derivation()
|
A D | ecdsa.c | 751 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature_restartable() argument 769 hash, hlen, md_alg, f_rng, in mbedtls_ecdsa_write_signature_restartable() 778 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature_restartable() 801 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature() argument 811 ctx, md_alg, hash, hlen, sig, slen, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_write_signature() 817 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature_det() argument 834 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_read_signature() argument 841 ctx, hash, hlen, sig, slen, NULL ) ); in mbedtls_ecdsa_read_signature() 848 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_read_signature_restartable() argument 887 if( ( ret = mbedtls_ecdsa_verify( &ctx->grp, hash, hlen, in mbedtls_ecdsa_read_signature_restartable() [all …]
|
A D | ssl_tls.c | 1738 size_t *hlen ) in ssl_calc_verify_ssl() argument 1776 *hlen = 36; in ssl_calc_verify_ssl() 1778 MBEDTLS_SSL_DEBUG_BUF( 3, "calculated verify result", hash, *hlen ); in ssl_calc_verify_ssl() 1791 size_t *hlen ) in ssl_calc_verify_tls() argument 1807 *hlen = 36; in ssl_calc_verify_tls() 1823 size_t *hlen ) in ssl_calc_verify_tls_sha256() argument 1845 *hlen = 32; in ssl_calc_verify_tls_sha256() 1858 *hlen = 32; in ssl_calc_verify_tls_sha256() 1872 size_t *hlen ) in ssl_calc_verify_tls_sha384() argument 1894 *hlen = 48; in ssl_calc_verify_tls_sha384() [all …]
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | ecdsa.h | 372 const unsigned char *hash, size_t hlen, 418 const unsigned char *hash, size_t hlen, 475 const unsigned char *hash, size_t hlen, 510 const unsigned char *hash, size_t hlen, 545 const unsigned char *hash, size_t hlen,
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | ecdsa.h | 372 const unsigned char *hash, size_t hlen, 418 const unsigned char *hash, size_t hlen, 475 const unsigned char *hash, size_t hlen, 510 const unsigned char *hash, size_t hlen, 545 const unsigned char *hash, size_t hlen,
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | ecdsa.h | 372 const unsigned char *hash, size_t hlen, 418 const unsigned char *hash, size_t hlen, 475 const unsigned char *hash, size_t hlen, 510 const unsigned char *hash, size_t hlen, 545 const unsigned char *hash, size_t hlen,
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | ecdsa.h | 372 const unsigned char *hash, size_t hlen, 418 const unsigned char *hash, size_t hlen, 475 const unsigned char *hash, size_t hlen, 510 const unsigned char *hash, size_t hlen, 545 const unsigned char *hash, size_t hlen,
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | ecdsa.h | 372 const unsigned char *hash, size_t hlen, 418 const unsigned char *hash, size_t hlen, 475 const unsigned char *hash, size_t hlen, 510 const unsigned char *hash, size_t hlen, 545 const unsigned char *hash, size_t hlen,
|
/optee_os/core/tee/ |
A D | tee_svc_cryp.c | 2449 size_t hlen = 0; in syscall_hash_final() local 2462 res = get_user_u64_as_size_t(&hlen, hash_len); in syscall_hash_final() 2470 (uaddr_t)hash, hlen); in syscall_hash_final() 2486 if (hlen < hash_size) { in syscall_hash_final() 2506 if (hlen < hash_size) { in syscall_hash_final()
|