Lines Matching refs:hashlen

1760                          unsigned int hashlen,  in mbedtls_rsa_rsassa_pss_sign()  argument
1776 hashlen == 0 ) || in mbedtls_rsa_rsassa_pss_sign()
1795 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_sign()
1840 if( ( ret = mbedtls_md_update( &md_ctx, hash, hashlen ) ) != 0 ) in mbedtls_rsa_rsassa_pss_sign()
1900 unsigned int hashlen, in rsa_rsassa_pkcs1_v15_encode() argument
1920 hashlen = mbedtls_md_get_size( md_info ); in rsa_rsassa_pkcs1_v15_encode()
1924 if( 8 + hashlen + oid_size >= 0x80 || in rsa_rsassa_pkcs1_v15_encode()
1925 10 + hashlen < hashlen || in rsa_rsassa_pkcs1_v15_encode()
1926 10 + hashlen + oid_size < 10 + hashlen ) in rsa_rsassa_pkcs1_v15_encode()
1937 if( nb_pad < 10 + hashlen + oid_size ) in rsa_rsassa_pkcs1_v15_encode()
1939 nb_pad -= 10 + hashlen + oid_size; 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()
1986 *p++ = (unsigned char)( 0x08 + oid_size + 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()
2019 unsigned int hashlen, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
2030 hashlen == 0 ) || in mbedtls_rsa_rsassa_pkcs1_v15_sign()
2041 if( ( ret = rsa_rsassa_pkcs1_v15_encode( md_alg, hashlen, hash, in mbedtls_rsa_rsassa_pkcs1_v15_sign()
2099 unsigned int hashlen, in mbedtls_rsa_pkcs1_sign() argument
2107 hashlen == 0 ) || in mbedtls_rsa_pkcs1_sign()
2116 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign()
2122 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign()
2139 unsigned int hashlen, in mbedtls_rsa_rsassa_pss_verify_ext() argument
2162 hashlen == 0 ) || in mbedtls_rsa_rsassa_pss_verify_ext()
2192 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_verify_ext()
2259 ret = mbedtls_md_update( &md_ctx, hash, hashlen ); in mbedtls_rsa_rsassa_pss_verify_ext()
2289 unsigned int hashlen, in mbedtls_rsa_rsassa_pss_verify() argument
2299 hashlen == 0 ) || in mbedtls_rsa_rsassa_pss_verify()
2307 md_alg, hashlen, hash, in mbedtls_rsa_rsassa_pss_verify()
2323 unsigned int hashlen, in mbedtls_rsa_rsassa_pkcs1_v15_verify() argument
2336 hashlen == 0 ) || in mbedtls_rsa_rsassa_pkcs1_v15_verify()
2355 if( ( ret = rsa_rsassa_pkcs1_v15_encode( md_alg, hashlen, hash, sig_len, in mbedtls_rsa_rsassa_pkcs1_v15_verify()
2406 unsigned int hashlen, in mbedtls_rsa_pkcs1_verify() argument
2415 hashlen == 0 ) || in mbedtls_rsa_pkcs1_verify()
2423 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_verify()
2429 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_verify()