Lines Matching refs:p_rng

534                  void *p_rng,  in mbedtls_rsa_gen_key()  argument
572 prime_quality, f_rng, p_rng ) ); in mbedtls_rsa_gen_key()
575 prime_quality, f_rng, p_rng ) ); in mbedtls_rsa_gen_key()
785 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_prepare_blinding() argument
811 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->Vf, ctx->len - 1, f_rng, p_rng ) ); in rsa_prepare_blinding()
814 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &R, ctx->len - 1, f_rng, p_rng ) ); in rsa_prepare_blinding()
869 void *p_rng, in mbedtls_rsa_private() argument
964 MBEDTLS_MPI_CHK( rsa_prepare_blinding( ctx, f_rng, p_rng ) ); in mbedtls_rsa_private()
979 f_rng, p_rng ) ); in mbedtls_rsa_private()
990 f_rng, p_rng ) ); in mbedtls_rsa_private()
1001 f_rng, p_rng ) ); in mbedtls_rsa_private()
1158 void *p_rng, in mbedtls_rsa_rsaes_oaep_encrypt() argument
1201 if( ( ret = f_rng( p_rng, p, hlen ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt()
1237 : mbedtls_rsa_private( ctx, f_rng, p_rng, output, output ) ); in mbedtls_rsa_rsaes_oaep_encrypt()
1247 void *p_rng, in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() argument
1286 ret = f_rng( p_rng, p, 1 ); in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1310 : mbedtls_rsa_private( ctx, f_rng, p_rng, output, output ) ); in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
1319 void *p_rng, in mbedtls_rsa_pkcs1_encrypt() argument
1334 return mbedtls_rsa_rsaes_pkcs1_v15_encrypt( ctx, f_rng, p_rng, mode, ilen, in mbedtls_rsa_pkcs1_encrypt()
1340 return mbedtls_rsa_rsaes_oaep_encrypt( ctx, f_rng, p_rng, mode, NULL, 0, in mbedtls_rsa_pkcs1_encrypt()
1355 void *p_rng, in mbedtls_rsa_rsaes_oaep_decrypt() argument
1411 : mbedtls_rsa_private( ctx, f_rng, p_rng, input, buf ); in mbedtls_rsa_rsaes_oaep_decrypt()
1598 void *p_rng, in mbedtls_rsa_rsaes_pkcs1_v15_decrypt() argument
1643 : mbedtls_rsa_private( ctx, f_rng, p_rng, input, buf ); in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
1770 void *p_rng, in mbedtls_rsa_pkcs1_decrypt() argument
1787 return mbedtls_rsa_rsaes_pkcs1_v15_decrypt( ctx, f_rng, p_rng, mode, olen, in mbedtls_rsa_pkcs1_decrypt()
1793 return mbedtls_rsa_rsaes_oaep_decrypt( ctx, f_rng, p_rng, mode, NULL, 0, in mbedtls_rsa_pkcs1_decrypt()
1806 void *p_rng, in rsa_rsassa_pss_sign() argument
1889 if( ( ret = f_rng( p_rng, salt, slen ) ) != 0 ) in rsa_rsassa_pss_sign()
1938 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig ) ); in rsa_rsassa_pss_sign()
1947 void *p_rng, in mbedtls_rsa_rsassa_pss_sign_ext() argument
1954 return rsa_rsassa_pss_sign( ctx, f_rng, p_rng, MBEDTLS_RSA_PRIVATE, md_alg, in mbedtls_rsa_rsassa_pss_sign_ext()
1964 void *p_rng, in mbedtls_rsa_rsassa_pss_sign() argument
1971 return rsa_rsassa_pss_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_rsassa_pss_sign()
2116 void *p_rng, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
2172 MBEDTLS_MPI_CHK( mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig_try ) ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
2196 void *p_rng, in mbedtls_rsa_pkcs1_sign() argument
2215 return mbedtls_rsa_rsassa_pkcs1_v15_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_sign()
2221 return mbedtls_rsa_rsassa_pss_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_sign()
2236 void *p_rng, in mbedtls_rsa_rsassa_pss_verify_ext() argument
2275 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, buf ); in mbedtls_rsa_rsassa_pss_verify_ext()
2386 void *p_rng, in mbedtls_rsa_rsassa_pss_verify() argument
2406 return( mbedtls_rsa_rsassa_pss_verify_ext( ctx, f_rng, p_rng, mode, in mbedtls_rsa_rsassa_pss_verify()
2420 void *p_rng, in mbedtls_rsa_rsassa_pkcs1_v15_verify() argument
2465 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, encoded ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()
2503 void *p_rng, in mbedtls_rsa_pkcs1_verify() argument
2522 return mbedtls_rsa_rsassa_pkcs1_v15_verify( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_verify()
2528 return mbedtls_rsa_rsassa_pss_verify( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_verify()