/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | hkdf.c | 58 size_t hash_len; in mbedtls_hkdf_extract() local 67 if( hash_len == 0 ) in mbedtls_hkdf_extract() 73 salt_len = hash_len; in mbedtls_hkdf_extract() 83 size_t hash_len; in mbedtls_hkdf_expand() local 97 hash_len = mbedtls_md_get_size( md ); in mbedtls_hkdf_expand() 99 if( prk_len < hash_len || hash_len == 0 ) in mbedtls_hkdf_expand() 110 n = okm_len / hash_len; in mbedtls_hkdf_expand() 112 if( okm_len % hash_len != 0 ) in mbedtls_hkdf_expand() 133 memset( t, 0, hash_len ); in mbedtls_hkdf_expand() 178 where += hash_len; in mbedtls_hkdf_expand() [all …]
|
A D | pk.c | 238 if( *hash_len != 0 && md_alg == MBEDTLS_MD_NONE ) in pk_hashlen_helper() 244 if ( *hash_len != 0 && *hash_len != mbedtls_md_get_size( md_info ) ) in pk_hashlen_helper() 247 *hash_len = mbedtls_md_get_size( md_info ); in pk_hashlen_helper() 280 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_restartable() argument 290 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_verify_restartable() 327 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument 339 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument 374 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext() 402 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign_restartable() argument 413 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_sign_restartable() [all …]
|
A D | pk_wrap.c | 78 const unsigned char *hash, size_t hash_len, in rsa_verify_wrap() argument 86 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in rsa_verify_wrap() 110 const unsigned char *hash, size_t hash_len, in rsa_sign_wrap() argument 117 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in rsa_sign_wrap() 124 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_sign_wrap() 238 const unsigned char *hash, size_t hash_len, 602 hash, hash_len, in ecdsa_verify_wrap() 659 hash, hash_len, sig, sig_len, in ecdsa_verify_rs_wrap() 765 if( UINT_MAX < hash_len ) in rsa_alt_sign_wrap() 1004 ((void) hash_len); in pk_opaque_sign_wrap() [all …]
|
A D | x509write_csr.c | 152 size_t hash_len; in x509write_csr_der_internal() local 227 if( psa_hash_finish( &hash_operation, hash, sizeof( hash ), &hash_len ) in x509write_csr_der_internal()
|
A D | ssl_tls.c | 3531 int ret, hash_len; in mbedtls_ssl_write_finished() local 3548 ssl->verify_data_len = hash_len; in mbedtls_ssl_write_finished() 3549 memcpy( ssl->own_verify_data, ssl->out_msg + 4, hash_len ); in mbedtls_ssl_write_finished() 3552 ssl->out_msglen = 4 + hash_len; in mbedtls_ssl_write_finished() 3656 unsigned int hash_len; in mbedtls_ssl_parse_finished() local 3664 hash_len = 36; in mbedtls_ssl_parse_finished() 3667 hash_len = 12; in mbedtls_ssl_parse_finished() 3697 buf, hash_len ) != 0 ) in mbedtls_ssl_parse_finished() 3707 ssl->verify_data_len = hash_len; in mbedtls_ssl_parse_finished() 3708 memcpy( ssl->peer_verify_data, buf, hash_len ); in mbedtls_ssl_parse_finished() [all …]
|
A D | x509_crt.c | 2431 size_t hash_len; in x509_crt_check_signature() local 2435 hash_len = mbedtls_md_get_size( md_info ); in x509_crt_check_signature() 2453 if( psa_hash_finish( &hash_operation, hash, sizeof( hash ), &hash_len ) in x509_crt_check_signature() 2467 child->sig_md, hash, hash_len, in x509_crt_check_signature() 2475 child->sig_md, hash, hash_len, in x509_crt_check_signature()
|
/optee_os-3.20.0/core/tee/ |
A D | tee_cryp_concat_kdf.c | 20 size_t hash_len, i, n, sz; in tee_cryp_concat_kdf() local 31 res = tee_alg_get_digest_size(hash_algo, &hash_len); in tee_cryp_concat_kdf() 35 n = derived_key_len / hash_len; in tee_cryp_concat_kdf() 36 sz = hash_len; in tee_cryp_concat_kdf() 61 sz = derived_key_len % hash_len; in tee_cryp_concat_kdf()
|
A D | tee_cryp_pbkdf2.c | 15 size_t hash_len; member 56 res = crypto_mac_update(h->ctx, u, h->hash_len); in pbkdf2_f() 84 res = tee_alg_get_digest_size(hmac_parms.algo, &hmac_parms.hash_len); in tee_cryp_pbkdf2() 98 l = derived_key_len / hmac_parms.hash_len; in tee_cryp_pbkdf2() 99 r = derived_key_len % hmac_parms.hash_len; in tee_cryp_pbkdf2() 102 res = pbkdf2_f(out, hmac_parms.hash_len, i, &hmac_parms, in tee_cryp_pbkdf2() 106 out += hmac_parms.hash_len; in tee_cryp_pbkdf2()
|
A D | tee_cryp_hkdf.c | 70 size_t tn_len, hash_len, i, n, where; in hkdf_expand() local 76 res = tee_alg_get_digest_size(hash_algo, &hash_len); in hkdf_expand() 80 if (!okm || prk_len < hash_len) { in hkdf_expand() 93 n = okm_len / hash_len; in hkdf_expand() 94 if ((okm_len % hash_len) != 0) in hkdf_expand() 134 memcpy(okm + where, tn, (i < n) ? hash_len : (okm_len - where)); in hkdf_expand() 135 where += hash_len; in hkdf_expand() 136 tn_len = hash_len; in hkdf_expand()
|
A D | tee_svc_cryp.c | 2878 size_t chunk_size, void *hash, uint64_t *hash_len) in syscall_hash_final() argument 2901 res = get_user_u64_as_size_t(&hlen, hash_len); in syscall_hash_final() 2965 res2 = put_user_u64(hash_len, hash_size); in syscall_hash_final()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | pk_internal.h | 50 const unsigned char *hash, size_t hash_len, 55 const unsigned char *hash, size_t hash_len, 63 const unsigned char *hash, size_t hash_len, 69 const unsigned char *hash, size_t hash_len,
|
A D | pk.h | 414 const unsigned char *hash, size_t hash_len, 439 const unsigned char *hash, size_t hash_len, 474 const unsigned char *hash, size_t hash_len, 508 const unsigned char *hash, size_t hash_len, 542 const unsigned char *hash, size_t hash_len,
|
A D | ssl.h | 775 size_t hash_len );
|
/optee_os-3.20.0/core/drivers/crypto/versal/include/ |
A D | ipi.h | 21 uint32_t hash_len; member 29 uint32_t hash_len; member 37 uint32_t hash_len; member
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_svc_cryp.h | 46 size_t chunk_size, void *hash, uint64_t *hash_len);
|
/optee_os-3.20.0/lib/libutee/include/ |
A D | utee_syscalls.h | 95 size_t chunk_size, void *hash, uint64_t *hash_len);
|
/optee_os-3.20.0/core/drivers/crypto/versal/ |
A D | ecc.c | 217 cmd->hash_len = p.len; in verify() 305 cmd->hash_len = p.len; in sign()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/ |
A D | ChangeLog | 372 nonzero. Before, for RSA, hash_len was ignored in favor of the length of
|