Home
last modified time | relevance | path

Searched refs:p_rng (Results 1 – 25 of 73) sorted by relevance

123

/mbedtls-3.6.0/library/
Decdh.c57 void *p_rng, in ecdh_gen_public_restartable() argument
68 MBEDTLS_MPI_CHK(mbedtls_ecp_gen_privkey(grp, d, f_rng, p_rng)); in ecdh_gen_public_restartable()
72 f_rng, p_rng, rs_ctx)); in ecdh_gen_public_restartable()
83 void *p_rng) in mbedtls_ecdh_gen_public() argument
85 return ecdh_gen_public_restartable(grp, d, Q, f_rng, p_rng, NULL); in mbedtls_ecdh_gen_public()
97 void *p_rng, in ecdh_compute_shared_restartable() argument
106 f_rng, p_rng, rs_ctx)); in ecdh_compute_shared_restartable()
127 void *p_rng) in mbedtls_ecdh_compute_shared() argument
130 f_rng, p_rng, NULL); in mbedtls_ecdh_compute_shared()
270 void *p_rng, in ecdh_make_params_internal() argument
[all …]
Dpsa_crypto_random_impl.h32 int mbedtls_psa_get_random(void *p_rng,
80 static inline void mbedtls_psa_drbg_init(mbedtls_psa_drbg_context_t *p_rng) in mbedtls_psa_drbg_init() argument
83 mbedtls_ctr_drbg_init(p_rng); in mbedtls_psa_drbg_init()
85 mbedtls_hmac_drbg_init(p_rng); in mbedtls_psa_drbg_init()
93 static inline void mbedtls_psa_drbg_free(mbedtls_psa_drbg_context_t *p_rng) in mbedtls_psa_drbg_free() argument
96 mbedtls_ctr_drbg_free(p_rng); in mbedtls_psa_drbg_free()
98 mbedtls_hmac_drbg_free(p_rng); in mbedtls_psa_drbg_free()
Dpk_wrap.c351 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_sign_wrap() argument
354 ((void) p_rng); in rsa_sign_wrap()
371 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_sign_wrap() argument
386 return mbedtls_rsa_pkcs1_sign(rsa, f_rng, p_rng, in rsa_sign_wrap()
396 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_decrypt_wrap() argument
408 ((void) p_rng); in rsa_decrypt_wrap()
465 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_decrypt_wrap() argument
473 return mbedtls_rsa_pkcs1_decrypt(rsa, f_rng, p_rng, in rsa_decrypt_wrap()
482 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_encrypt_wrap() argument
494 ((void) p_rng); in rsa_encrypt_wrap()
[all …]
Decdsa.c246 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ecdsa_sign_restartable() argument
308 MBEDTLS_MPI_CHK(mbedtls_ecp_gen_privkey(grp, pk, f_rng, p_rng)); in mbedtls_ecdsa_sign_restartable()
382 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_ecdsa_sign() argument
386 f_rng, p_rng, f_rng, p_rng, NULL); in mbedtls_ecdsa_sign()
407 mbedtls_hmac_drbg_context *p_rng = &rng_ctx; in mbedtls_ecdsa_sign_det_restartable() local
425 p_rng = &rs_ctx->det->rng_ctx; in mbedtls_ecdsa_sign_det_restartable()
438 MBEDTLS_MPI_CHK(mbedtls_hmac_drbg_seed_buf(p_rng, md_info, data, 2 * grp_len)); in mbedtls_ecdsa_sign_det_restartable()
451 mbedtls_hmac_drbg_random, p_rng); in mbedtls_ecdsa_sign_det_restartable()
454 mbedtls_hmac_drbg_random, p_rng, in mbedtls_ecdsa_sign_det_restartable()
644 void *p_rng, in mbedtls_ecdsa_write_signature_restartable() argument
[all …]
Decjpake.c323 void *p_rng) in ecjpake_zkp_write() argument
341 G, &v, &V, f_rng, p_rng)); in ecjpake_zkp_write()
421 void *p_rng) in ecjpake_kkp_write() argument
432 f_rng, p_rng)); in ecjpake_kkp_write()
439 p, end, f_rng, p_rng)); in ecjpake_kkp_write()
496 void *p_rng) in ecjpake_kkpp_write() argument
503 &p, end, f_rng, p_rng)); in ecjpake_kkpp_write()
505 &p, end, f_rng, p_rng)); in ecjpake_kkpp_write()
532 void *p_rng) in mbedtls_ecjpake_write_round_one() argument
537 ID_MINE, buf, len, olen, f_rng, p_rng); in mbedtls_ecjpake_write_round_one()
[all …]
Ddhm.c169 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_random_below() argument
173 MBEDTLS_MPI_CHK(mbedtls_mpi_random(R, 3, M, f_rng, p_rng)); in dhm_random_below()
182 void *p_rng) in dhm_make_common() argument
194 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&ctx->X, x_size, f_rng, p_rng)); in dhm_make_common()
197 ret = dhm_random_below(&ctx->X, &ctx->P, f_rng, p_rng); in dhm_make_common()
226 void *p_rng) in mbedtls_dhm_make_params() argument
232 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_params()
311 void *p_rng) in mbedtls_dhm_make_public() argument
319 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_public()
344 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_update_blinding() argument
[all …]
Drsa.c673 void *p_rng, in mbedtls_rsa_gen_key() argument
713 prime_quality, f_rng, p_rng)); in mbedtls_rsa_gen_key()
716 prime_quality, f_rng, p_rng)); in mbedtls_rsa_gen_key()
916 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_prepare_blinding() argument
940 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&ctx->Vf, ctx->len - 1, f_rng, p_rng)); in rsa_prepare_blinding()
943 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&R, ctx->len - 1, f_rng, p_rng)); in rsa_prepare_blinding()
1038 void *p_rng, in mbedtls_rsa_private() argument
1116 MBEDTLS_MPI_CHK(rsa_prepare_blinding(ctx, f_rng, p_rng)); in mbedtls_rsa_private()
1133 f_rng, p_rng)); in mbedtls_rsa_private()
1142 f_rng, p_rng)); in mbedtls_rsa_private()
[all …]
Dpk_wrap.h45 void *p_rng);
59 void *p_rng, void *rs_ctx);
66 void *p_rng);
72 void *p_rng);
77 void *p_rng);
Dpkparse.c116 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_parse_keyfile() argument
127 ret = mbedtls_pk_parse_key(ctx, buf, n, NULL, 0, f_rng, p_rng); in mbedtls_pk_parse_keyfile()
130 (const unsigned char *) pwd, strlen(pwd), f_rng, p_rng); in mbedtls_pk_parse_keyfile()
522 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in pk_derive_public_key() argument
528 (void) p_rng; in pk_derive_public_key()
570 ret = mbedtls_ecp_mul(&eck->grp, &eck->Q, &eck->d, &eck->grp.G, f_rng, p_rng); in pk_derive_public_key()
609 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in pk_parse_key_rfc8410_der() argument
647 if ((ret = pk_derive_public_key(pk, key, len, f_rng, p_rng)) != 0) { in pk_parse_key_rfc8410_der()
1148 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in pk_parse_key_sec1_der() argument
1282 if ((ret = pk_derive_public_key(pk, d, d_len, f_rng, p_rng)) != 0) { in pk_parse_key_sec1_der()
[all …]
Dpk.c603 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_pk_sign_restartable() argument
628 f_rng, p_rng, rs_ctx->rs_ctx); in mbedtls_pk_sign_restartable()
647 f_rng, p_rng); in mbedtls_pk_sign_restartable()
656 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_sign() argument
660 f_rng, p_rng, NULL); in mbedtls_pk_sign()
673 void *p_rng) in mbedtls_pk_sign_ext() argument
690 sig, sig_size, sig_len, f_rng, p_rng); in mbedtls_pk_sign_ext()
724 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_decrypt() argument
735 output, olen, osize, f_rng, p_rng); in mbedtls_pk_decrypt()
744 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_encrypt() argument
[all …]
Decp.c1205 MBEDTLS_MPI_CHK(mbedtls_mpi_random((X), 2, &grp->P, f_rng, p_rng))
1692 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in ecp_randomize_jac() argument
1696 return mbedtls_internal_ecp_randomize_jac(grp, pt, f_rng, p_rng); in ecp_randomize_jac()
2057 void *p_rng, in ecp_mul_comb_core() argument
2090 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, R, f_rng, p_rng)); in ecp_mul_comb_core()
2182 void *p_rng, in ecp_mul_comb_after_precomp() argument
2203 f_rng, p_rng, rs_ctx)); in ecp_mul_comb_after_precomp()
2226 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, RR, f_rng, p_rng)); in ecp_mul_comb_after_precomp()
2302 void *p_rng, in ecp_mul_comb() argument
2374 f_rng, p_rng, rs_ctx)); in ecp_mul_comb()
[all …]
Dx509write_csr.c135 void *p_rng) in x509write_csr_der_internal() argument
230 f_rng, p_rng)) != 0) { in x509write_csr_der_internal()
287 void *p_rng) in mbedtls_x509write_csr_der() argument
298 f_rng, p_rng); in mbedtls_x509write_csr_der()
311 void *p_rng) in mbedtls_x509write_csr_pem() argument
317 f_rng, p_rng)) < 0) { in mbedtls_x509write_csr_pem()
Dssl_ticket.c79 if ((ret = ctx->f_rng(ctx->p_rng, key->name, sizeof(key->name))) != 0) { in ssl_ticket_gen_key()
83 if ((ret = ctx->f_rng(ctx->p_rng, buf, sizeof(buf))) != 0) { in ssl_ticket_gen_key()
208 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_ticket_setup() argument
248 ctx->p_rng = p_rng; in mbedtls_ssl_ticket_setup()
338 if ((ret = ctx->f_rng(ctx->p_rng, iv, TICKET_IV_BYTES)) != 0) { in mbedtls_ssl_ticket_write()
/mbedtls-3.6.0/include/mbedtls/
Drsa.h459 void *p_rng,
584 void *p_rng,
613 void *p_rng,
640 void *p_rng,
674 void *p_rng,
717 void *p_rng,
759 void *p_rng,
800 void *p_rng,
843 void *p_rng,
875 void *p_rng,
[all …]
Dpk.h299 void *p_rng,
616 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
654 void *p_rng);
690 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
713 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
736 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
755 void *p_rng);
872 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
936 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Decdh.h180 void *p_rng);
216 void *p_rng);
281 void *p_rng);
363 void *p_rng);
419 void *p_rng);
Decdsa.h163 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
275 void *p_rng,
477 void *p_rng);
524 void *p_rng,
611 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Decjpake.h166 void *p_rng);
207 void *p_rng);
247 void *p_rng);
270 void *p_rng);
Decp.h968 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
1002 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
1182 void *p_rng);
1215 void *p_rng);
1243 void *p_rng);
1260 void *p_rng);
1324 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Ddhm.h187 void *p_rng);
254 void *p_rng);
285 void *p_rng);
/mbedtls-3.6.0/3rdparty/everest/library/
Deverest.c51 void *p_rng ) in mbedtls_everest_make_params() argument
54 return mbedtls_x25519_make_params( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_params()
79 void *p_rng ) in mbedtls_everest_make_public() argument
82 return mbedtls_x25519_make_public( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_public()
95 void *p_rng ) in mbedtls_everest_calc_secret() argument
98 return mbedtls_x25519_calc_secret( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_calc_secret()
Dx25519.c62 void *p_rng ) in mbedtls_x25519_make_params() argument
68 if( ( ret = f_rng( p_rng, ctx->our_secret, MBEDTLS_X25519_KEY_SIZE_BYTES ) ) != 0 ) in mbedtls_x25519_make_params()
122 void *p_rng ) in mbedtls_x25519_calc_secret() argument
127 (( void )p_rng); in mbedtls_x25519_calc_secret()
148 void *p_rng ) in mbedtls_x25519_make_public() argument
156 if( ( ret = f_rng( p_rng, ctx->our_secret, MBEDTLS_X25519_KEY_SIZE_BYTES ) ) != 0 ) in mbedtls_x25519_make_public()
/mbedtls-3.6.0/programs/fuzz/
Dcommon.c59 int dummy_random(void *p_rng, unsigned char *output, size_t output_len) in dummy_random() argument
66 if (p_rng != NULL) { in dummy_random()
68 ret = mbedtls_ctr_drbg_random(p_rng, output, output_len); in dummy_random()
74 (void) p_rng; in dummy_random()
/mbedtls-3.6.0/3rdparty/everest/include/everest/
Dx25519.h84 void *p_rng );
143 void *p_rng );
166 void *p_rng );
Deverest.h96 void *p_rng );
181 void *p_rng );
228 void *p_rng );

123