Home
last modified time | relevance | path

Searched refs:hashlen (Results 1 – 8 of 8) sorted by relevance

/net-tools-latest/mbedtls-2.4.0/library/
Dpkcs11.c170 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()
Drsa.c926 unsigned int hashlen, in mbedtls_rsa_rsassa_pss_sign() argument
954 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_sign()
990 mbedtls_md_update( &md_ctx, hash, hashlen ); in mbedtls_rsa_rsassa_pss_sign()
1027 unsigned int hashlen, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
1057 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1060 nb_pad -= hashlen; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1073 memcpy( p, hash, hashlen ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1087 *p++ = (unsigned char) ( 0x08 + oid_size + hashlen ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1097 *p++ = hashlen; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1098 memcpy( p, hash, hashlen ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
[all …]
Dssl_cli.c2342 size_t sig_len, hashlen; local
2414 hashlen = 36;
2454 hashlen = 0;
2484 MBEDTLS_SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen != 0 ? hashlen :
2503 md_alg, hash, hashlen, p, sig_len ) ) != 0 )
3024 unsigned int hashlen; local
3079 hashlen = 36;
3088 hashlen -= 16;
3127 hashlen = 0;
3137 if( ( ret = mbedtls_pk_sign( mbedtls_ssl_own_key( ssl ), md_alg, hash_start, hashlen,
Dssl_srv.c2862 unsigned int hashlen = 0; local
2931 hashlen = 36;
2949 hashlen = 0;
2978 MBEDTLS_SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen != 0 ? hashlen :
3000 if( ( ret = mbedtls_pk_sign( mbedtls_ssl_own_key( ssl ), md_alg, hash, hashlen,
3559 size_t hashlen; local
3622 hashlen = 36;
3629 hashlen -= 16;
3663 hashlen = 0;
3715 md_alg, hash_start, hashlen,
/net-tools-latest/mbedtls-2.4.0/include/mbedtls/
Drsa.h429 unsigned int hashlen,
456 unsigned int hashlen,
489 unsigned int hashlen,
521 unsigned int hashlen,
548 unsigned int hashlen,
582 unsigned int hashlen,
615 unsigned int hashlen,
Dpkcs11.h136 unsigned int hashlen,
153 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument
159 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
Dpk.h167 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
/net-tools-latest/mbedtls-2.4.0/tests/suites/
Dtest_suite_pk.function48 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
52 md_alg, hashlen, hash, sig ) );