Lines Matching refs:hashlen

926                          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()
1151 unsigned int hashlen, in mbedtls_rsa_pkcs1_sign() argument
1160 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign()
1166 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign()
1183 unsigned int hashlen, in mbedtls_rsa_rsassa_pss_verify_ext() argument
1227 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_verify_ext()
1289 mbedtls_md_update( &md_ctx, hash, hashlen ); in mbedtls_rsa_rsassa_pss_verify_ext()
1309 unsigned int hashlen, in mbedtls_rsa_rsassa_pss_verify() argument
1318 md_alg, hashlen, hash, in mbedtls_rsa_rsassa_pss_verify()
1334 unsigned int hashlen, in mbedtls_rsa_rsassa_pkcs1_v15_verify() argument
1376 if( len == hashlen && md_alg == MBEDTLS_MD_NONE ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1378 if( memcmp( p, hash, hashlen ) == 0 ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1387 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1405 if( asn1_len + 6 + hashlen != len ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1429 if( asn1_len != hashlen ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1432 if( memcmp( p, hash, hashlen ) != 0 ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1435 p += hashlen; in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1452 unsigned int hashlen, in mbedtls_rsa_pkcs1_verify() argument
1461 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_verify()
1467 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_verify()