/AliOS-Things-master/components/mbedtls/library/ |
A D | pkcs11.c | 170 unsigned int hashlen, in mbedtls_pkcs11_sign() argument 193 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_pkcs11_sign() 198 if( hashlen > sig_len || asn_len > sig_len || in mbedtls_pkcs11_sign() 199 hashlen + asn_len > sig_len ) in mbedtls_pkcs11_sign() 216 *p++ = (unsigned char) ( 0x08 + oid_size + hashlen ); in mbedtls_pkcs11_sign() 226 *p++ = hashlen; in mbedtls_pkcs11_sign() 229 memcpy( p, hash, hashlen ); in mbedtls_pkcs11_sign() 232 asn_len + hashlen, sig, &sig_len ) != CKR_OK ) in mbedtls_pkcs11_sign()
|
A D | rsa.c | 1776 hashlen == 0 ) || in mbedtls_rsa_rsassa_pss_sign() 1925 10 + hashlen < hashlen || in rsa_rsassa_pkcs1_v15_encode() 1926 10 + hashlen + oid_size < 10 + hashlen ) in rsa_rsassa_pkcs1_v15_encode() 1943 if( nb_pad < hashlen ) in rsa_rsassa_pkcs1_v15_encode() 1946 nb_pad -= hashlen; in rsa_rsassa_pkcs1_v15_encode() 1968 memcpy( p, hash, hashlen ); in rsa_rsassa_pkcs1_v15_encode() 1996 *p++ = (unsigned char) hashlen; in rsa_rsassa_pkcs1_v15_encode() 1997 memcpy( p, hash, hashlen ); in rsa_rsassa_pkcs1_v15_encode() 1998 p += hashlen; in rsa_rsassa_pkcs1_v15_encode() 2030 hashlen == 0 ) || in mbedtls_rsa_rsassa_pkcs1_v15_sign() [all …]
|
A D | ssl_cli.c | 2510 size_t sig_len, hashlen; in ssl_parse_server_key_exchange() local 2591 hashlen = 36; in ssl_parse_server_key_exchange() 2604 ret = mbedtls_ssl_get_key_exchange_md_tls1_2( ssl, hash, &hashlen, in ssl_parse_server_key_exchange() 2618 MBEDTLS_SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen ); in ssl_parse_server_key_exchange() 2646 md_alg, hash, hashlen, p, sig_len, rs_ctx ) ) != 0 ) in ssl_parse_server_key_exchange() 3223 unsigned int hashlen; in ssl_write_certificate_verify() local 3294 hashlen = 36; in ssl_write_certificate_verify() 3303 hashlen -= 16; in ssl_write_certificate_verify() 3342 hashlen = 0; in ssl_write_certificate_verify() 3358 md_alg, hash_start, hashlen, in ssl_write_certificate_verify()
|
A D | ssl_srv.c | 3089 size_t hashlen = 0; in ssl_prepare_server_key_exchange() local 3147 hashlen = 36; in ssl_prepare_server_key_exchange() 3161 ret = mbedtls_ssl_get_key_exchange_md_tls1_2( ssl, hash, &hashlen, in ssl_prepare_server_key_exchange() 3176 MBEDTLS_SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen ); in ssl_prepare_server_key_exchange() 3212 md_alg, hash, hashlen ); in ssl_prepare_server_key_exchange() 3243 md_alg, hash, hashlen, in ssl_prepare_server_key_exchange() 4022 size_t hashlen; in ssl_parse_certificate_verify() local 4075 hashlen = 36; in ssl_parse_certificate_verify() 4082 hashlen -= 16; in ssl_parse_certificate_verify() 4116 hashlen = 0; in ssl_parse_certificate_verify() [all …]
|
A D | ssl_tls.c | 9795 unsigned char *hash, size_t *hashlen, in mbedtls_ssl_get_key_exchange_md_tls1_2() argument 9802 *hashlen = mbedtls_md_get_size( md_info ); in mbedtls_ssl_get_key_exchange_md_tls1_2()
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | rsa.h | 917 unsigned int hashlen, 964 unsigned int hashlen, 1025 unsigned int hashlen, 1078 unsigned int hashlen, 1124 unsigned int hashlen, 1181 unsigned int hashlen, 1229 unsigned int hashlen,
|
A D | pkcs11.h | 138 unsigned int hashlen, 155 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument 161 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
A D | pk.h | 185 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
|
A D | ssl_internal.h | 766 unsigned char *hash, size_t *hashlen,
|
/AliOS-Things-master/components/mbedtls/platform/yoc/ |
A D | rsa_alt.c | 382 void *p_rng, int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_rsa_pkcs1_sign() argument 403 hashlen = mbedtls_md_get_size(md_info); in mbedtls_rsa_pkcs1_sign() 445 ret = csi_tee_rsa_sign(hash, hashlen, key, key_size * 3, sig, &sig_len, type); in mbedtls_rsa_pkcs1_sign() 453 ret = sc_rsa_sign(&ctx->sc_rsa, &ctx->sc_ctx, (void *)hash, hashlen, sig, type); in mbedtls_rsa_pkcs1_sign() 473 mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_rsa_pkcs1_verify() argument 492 hashlen = mbedtls_md_get_size(md_info); in mbedtls_rsa_pkcs1_verify() 535 ret = csi_tee_rsa_verify((uint8_t *)hash, hashlen, key, key_size * 2, in mbedtls_rsa_pkcs1_verify() 542 ret = sc_rsa_verify(&ctx->sc_rsa, &ctx->sc_ctx, (void *)hash, hashlen, new_sig, in mbedtls_rsa_pkcs1_verify()
|
/AliOS-Things-master/components/mbedtls/platform/yoc/include/ |
A D | rsa_alt.h | 202 unsigned int hashlen, 233 unsigned int hashlen,
|