/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | pkcs11.c | 168 unsigned int hashlen, in mbedtls_pkcs11_sign() argument 191 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs11_sign() 196 if( hashlen > sig_len || asn_len > sig_len || in mbedtls_pkcs11_sign() 197 hashlen + asn_len > sig_len ) in mbedtls_pkcs11_sign() 214 *p++ = (unsigned char) ( 0x08 + oid_size + hashlen ); in mbedtls_pkcs11_sign() 224 *p++ = hashlen; in mbedtls_pkcs11_sign() 227 memcpy( p, hash, hashlen ); in mbedtls_pkcs11_sign() 230 asn_len + hashlen, sig, &sig_len ) != CKR_OK ) in mbedtls_pkcs11_sign()
|
A D | rsa.c | 1826 hashlen == 0 ) || in rsa_rsassa_pss_sign() 2025 10 + hashlen < hashlen || in rsa_rsassa_pkcs1_v15_encode() 2026 10 + hashlen + oid_size < 10 + hashlen ) in rsa_rsassa_pkcs1_v15_encode() 2043 if( nb_pad < hashlen ) in rsa_rsassa_pkcs1_v15_encode() 2046 nb_pad -= hashlen; in rsa_rsassa_pkcs1_v15_encode() 2068 memcpy( p, hash, hashlen ); in rsa_rsassa_pkcs1_v15_encode() 2096 *p++ = (unsigned char) hashlen; in rsa_rsassa_pkcs1_v15_encode() 2097 memcpy( p, hash, hashlen ); in rsa_rsassa_pkcs1_v15_encode() 2098 p += hashlen; in rsa_rsassa_pkcs1_v15_encode() 2130 hashlen == 0 ) || in mbedtls_rsa_rsassa_pkcs1_v15_sign() [all …]
|
A D | ssl_cli.c | 3260 size_t sig_len, hashlen; in ssl_parse_server_key_exchange() local 3354 hashlen = 36; in ssl_parse_server_key_exchange() 3367 ret = mbedtls_ssl_get_key_exchange_md_tls1_2( ssl, hash, &hashlen, in ssl_parse_server_key_exchange() 3381 MBEDTLS_SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen ); in ssl_parse_server_key_exchange() 3414 md_alg, hash, hashlen, p, sig_len, rs_ctx ) ) != 0 ) in ssl_parse_server_key_exchange() 4129 size_t hashlen; in ssl_write_certificate_verify() local 4178 ssl->handshake->calc_verify( ssl, hash, &hashlen ); in ssl_write_certificate_verify() 4204 hashlen -= 16; in ssl_write_certificate_verify() 4243 hashlen = 0; in ssl_write_certificate_verify() 4259 md_alg, hash_start, hashlen, in ssl_write_certificate_verify()
|
A D | ssl_srv.c | 3483 size_t hashlen = 0; in ssl_prepare_server_key_exchange() local 3541 hashlen = 36; in ssl_prepare_server_key_exchange() 3555 ret = mbedtls_ssl_get_key_exchange_md_tls1_2( ssl, hash, &hashlen, in ssl_prepare_server_key_exchange() 3570 MBEDTLS_SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen ); in ssl_prepare_server_key_exchange() 3606 md_alg, hash, hashlen ); in ssl_prepare_server_key_exchange() 3637 md_alg, hash, hashlen, in ssl_prepare_server_key_exchange() 4431 size_t hashlen; in ssl_parse_certificate_verify() local 4507 hashlen = 36; in ssl_parse_certificate_verify() 4513 hashlen -= 16; in ssl_parse_certificate_verify() 4547 hashlen = 0; in ssl_parse_certificate_verify() [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_verify_hash.c | 33 const unsigned char *hash, unsigned long hashlen, in rsa_verify_hash_ex() argument 97 … err = pkcs_1_pss_decode(hash, hashlen, tmpbuf+1, x-1, saltlen, hash_idx, modulus_bitlen, stat); in rsa_verify_hash_ex() 100 err = pkcs_1_pss_decode(hash, hashlen, tmpbuf, x, saltlen, hash_idx, modulus_bitlen, stat); in rsa_verify_hash_ex() 164 (siginfo[1].size == hashlen) && in rsa_verify_hash_ex() 165 (XMEMCMP(siginfo[1].data, hash, hashlen) == 0)) { in rsa_verify_hash_ex() 170 if ((hashlen == outlen) && in rsa_verify_hash_ex() 171 (XMEMCMP(out, hash, hashlen) == 0)) { in rsa_verify_hash_ex()
|
/optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_verify_hash.c | 31 const unsigned char *hash, unsigned long hashlen, in dsa_verify_hash_raw() argument 57 hashlen = MIN(hashlen, (unsigned long)(key->qord)); in dsa_verify_hash_raw() 63 …if ((err = mp_read_unsigned_bin(u1, (unsigned char *)hash, hashlen)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw() 97 const unsigned char *hash, unsigned long hashlen, in dsa_verify_hash() argument 126 err = dsa_verify_hash_raw(r, s, hash, hashlen, stat, key); in dsa_verify_hash()
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | rsa.h | 923 unsigned int hashlen, 971 unsigned int hashlen, 1025 unsigned int hashlen, 1090 unsigned int hashlen, 1143 unsigned int hashlen, 1189 unsigned int hashlen, 1245 unsigned int hashlen, 1298 unsigned int hashlen,
|
A D | pkcs11.h | 165 unsigned int hashlen, 212 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument 218 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
A D | pk.h | 240 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | rsa.h | 923 unsigned int hashlen, 971 unsigned int hashlen, 1025 unsigned int hashlen, 1090 unsigned int hashlen, 1143 unsigned int hashlen, 1189 unsigned int hashlen, 1245 unsigned int hashlen, 1298 unsigned int hashlen,
|
A D | pkcs11.h | 165 unsigned int hashlen, 212 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument 218 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
A D | pk.h | 240 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | rsa.h | 923 unsigned int hashlen, 971 unsigned int hashlen, 1025 unsigned int hashlen, 1090 unsigned int hashlen, 1143 unsigned int hashlen, 1189 unsigned int hashlen, 1245 unsigned int hashlen, 1298 unsigned int hashlen,
|
A D | pkcs11.h | 165 unsigned int hashlen, 212 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument 218 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
A D | pk.h | 240 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | rsa.h | 923 unsigned int hashlen, 971 unsigned int hashlen, 1025 unsigned int hashlen, 1090 unsigned int hashlen, 1143 unsigned int hashlen, 1189 unsigned int hashlen, 1245 unsigned int hashlen, 1298 unsigned int hashlen,
|
A D | pkcs11.h | 165 unsigned int hashlen, 212 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument 218 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
A D | pk.h | 240 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
|
A D | ssl_internal.h | 1247 unsigned char *hash, size_t *hashlen,
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | rsa.h | 923 unsigned int hashlen, 971 unsigned int hashlen, 1025 unsigned int hashlen, 1090 unsigned int hashlen, 1143 unsigned int hashlen, 1189 unsigned int hashlen, 1245 unsigned int hashlen, 1298 unsigned int hashlen,
|
A D | pkcs11.h | 165 unsigned int hashlen, 212 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument 218 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
A D | pk.h | 240 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
|
/optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_verify_hash.c | 32 const unsigned char *hash, unsigned long hashlen, in ecc_verify_hash_ex() argument 138 if (pbits > hashlen*8) { in ecc_verify_hash_ex() 139 …if ((err = mp_read_unsigned_bin(e, (unsigned char *)hash, hashlen)) != CRYPT_OK) … in ecc_verify_hash_ex()
|
A D | ecc_recover_key.c | 34 const unsigned char *hash, unsigned long hashlen, in ecc_recover_key() argument 158 if (pbits > hashlen*8) { in ecc_recover_key() 159 …if ((err = mp_read_unsigned_bin(e, (unsigned char *)hash, hashlen)) != CRYPT_OK) … in ecc_recover_key()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_pk.h | 103 const unsigned char *hash, unsigned long hashlen, 321 const unsigned char *hash, unsigned long hashlen, 325 const unsigned char *hash, unsigned long hashlen, 454 const unsigned char *hash, unsigned long hashlen, 458 const unsigned char *hash, unsigned long hashlen,
|