Lines Matching refs:p_rng
96 void *p_rng, in mbedtls_rsa_gen_key() argument
120 f_rng, p_rng ) ); in mbedtls_rsa_gen_key()
123 f_rng, p_rng ) ); in mbedtls_rsa_gen_key()
326 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_prepare_blinding() argument
346 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->Vf, ctx->len - 1, f_rng, p_rng ) ); in rsa_prepare_blinding()
364 void *p_rng, in mbedtls_rsa_private() argument
396 MBEDTLS_MPI_CHK( rsa_prepare_blinding( ctx, f_rng, p_rng ) ); in mbedtls_rsa_private()
508 void *p_rng, in mbedtls_rsa_rsaes_oaep_encrypt() argument
544 if( ( ret = f_rng( p_rng, p, hlen ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt()
575 : mbedtls_rsa_private( ctx, f_rng, p_rng, output, output ) ); in mbedtls_rsa_rsaes_oaep_encrypt()
585 void *p_rng, in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() argument
619 ret = f_rng( p_rng, p, 1 ); in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
642 : mbedtls_rsa_private( ctx, f_rng, p_rng, output, output ) ); in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
651 void *p_rng, in mbedtls_rsa_pkcs1_encrypt() argument
660 return mbedtls_rsa_rsaes_pkcs1_v15_encrypt( ctx, f_rng, p_rng, mode, ilen, in mbedtls_rsa_pkcs1_encrypt()
666 return mbedtls_rsa_rsaes_oaep_encrypt( ctx, f_rng, p_rng, mode, NULL, 0, in mbedtls_rsa_pkcs1_encrypt()
681 void *p_rng, in mbedtls_rsa_rsaes_oaep_decrypt() argument
724 : mbedtls_rsa_private( ctx, f_rng, p_rng, input, buf ); in mbedtls_rsa_rsaes_oaep_decrypt()
805 void *p_rng, in mbedtls_rsa_rsaes_pkcs1_v15_decrypt() argument
826 : mbedtls_rsa_private( ctx, f_rng, p_rng, input, buf ); in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
891 void *p_rng, in mbedtls_rsa_pkcs1_decrypt() argument
901 return mbedtls_rsa_rsaes_pkcs1_v15_decrypt( ctx, f_rng, p_rng, mode, olen, in mbedtls_rsa_pkcs1_decrypt()
907 return mbedtls_rsa_rsaes_oaep_decrypt( ctx, f_rng, p_rng, mode, NULL, 0, in mbedtls_rsa_pkcs1_decrypt()
923 void *p_rng, in mbedtls_rsa_rsassa_pss_sign() argument
970 if( ( ret = f_rng( p_rng, salt, slen ) ) != 0 ) in mbedtls_rsa_rsassa_pss_sign()
1011 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig ) ); in mbedtls_rsa_rsassa_pss_sign()
1024 void *p_rng, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
1119 MBEDTLS_MPI_CHK( mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig_try ) ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1148 void *p_rng, in mbedtls_rsa_pkcs1_sign() argument
1159 return mbedtls_rsa_rsassa_pkcs1_v15_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_sign()
1165 return mbedtls_rsa_rsassa_pss_sign( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_sign()
1180 void *p_rng, in mbedtls_rsa_rsassa_pss_verify_ext() argument
1210 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, buf ); in mbedtls_rsa_rsassa_pss_verify_ext()
1306 void *p_rng, in mbedtls_rsa_rsassa_pss_verify() argument
1317 return( mbedtls_rsa_rsassa_pss_verify_ext( ctx, f_rng, p_rng, mode, in mbedtls_rsa_rsassa_pss_verify()
1331 void *p_rng, in mbedtls_rsa_rsassa_pkcs1_v15_verify() argument
1356 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, buf ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1449 void *p_rng, in mbedtls_rsa_pkcs1_verify() argument
1460 return mbedtls_rsa_rsassa_pkcs1_v15_verify( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_verify()
1466 return mbedtls_rsa_rsassa_pss_verify( ctx, f_rng, p_rng, mode, md_alg, in mbedtls_rsa_pkcs1_verify()