Home
last modified time | relevance | path

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

123

/mbedtls-3.5.0/library/
Decdh.c69 void *p_rng, in ecdh_gen_public_restartable() argument
80 MBEDTLS_MPI_CHK(mbedtls_ecp_gen_privkey(grp, d, f_rng, p_rng)); in ecdh_gen_public_restartable()
84 f_rng, p_rng, rs_ctx)); in ecdh_gen_public_restartable()
95 void *p_rng) in mbedtls_ecdh_gen_public() argument
97 return ecdh_gen_public_restartable(grp, d, Q, f_rng, p_rng, NULL); in mbedtls_ecdh_gen_public()
109 void *p_rng, in ecdh_compute_shared_restartable() argument
118 f_rng, p_rng, rs_ctx)); in ecdh_compute_shared_restartable()
139 void *p_rng) in mbedtls_ecdh_compute_shared() argument
142 f_rng, p_rng, NULL); in mbedtls_ecdh_compute_shared()
282 void *p_rng, in ecdh_make_params_internal() argument
[all …]
Dpsa_crypto_random_impl.h44 int mbedtls_psa_get_random(void *p_rng,
92 static inline void mbedtls_psa_drbg_init(mbedtls_psa_drbg_context_t *p_rng) in mbedtls_psa_drbg_init() argument
95 mbedtls_ctr_drbg_init(p_rng); in mbedtls_psa_drbg_init()
97 mbedtls_hmac_drbg_init(p_rng); in mbedtls_psa_drbg_init()
105 static inline void mbedtls_psa_drbg_free(mbedtls_psa_drbg_context_t *p_rng) in mbedtls_psa_drbg_free() argument
108 mbedtls_ctr_drbg_free(p_rng); in mbedtls_psa_drbg_free()
110 mbedtls_hmac_drbg_free(p_rng); in mbedtls_psa_drbg_free()
Dpk_wrap.c360 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_sign_wrap() argument
363 ((void) p_rng); in rsa_sign_wrap()
380 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_sign_wrap() argument
393 return mbedtls_rsa_pkcs1_sign(rsa, f_rng, p_rng, in rsa_sign_wrap()
403 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_decrypt_wrap() argument
415 ((void) p_rng); in rsa_decrypt_wrap()
472 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_decrypt_wrap() argument
480 return mbedtls_rsa_pkcs1_decrypt(rsa, f_rng, p_rng, in rsa_decrypt_wrap()
489 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_encrypt_wrap() argument
501 ((void) p_rng); in rsa_encrypt_wrap()
[all …]
Decdsa.c245 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ecdsa_sign_restartable() argument
307 MBEDTLS_MPI_CHK(mbedtls_ecp_gen_privkey(grp, pk, f_rng, p_rng)); in mbedtls_ecdsa_sign_restartable()
394 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_ecdsa_sign() argument
398 f_rng, p_rng, f_rng, p_rng, NULL); in mbedtls_ecdsa_sign()
419 mbedtls_hmac_drbg_context *p_rng = &rng_ctx; in mbedtls_ecdsa_sign_det_restartable() local
437 p_rng = &rs_ctx->det->rng_ctx; in mbedtls_ecdsa_sign_det_restartable()
450 mbedtls_hmac_drbg_seed_buf(p_rng, md_info, data, 2 * grp_len); in mbedtls_ecdsa_sign_det_restartable()
463 mbedtls_hmac_drbg_random, p_rng); in mbedtls_ecdsa_sign_det_restartable()
466 mbedtls_hmac_drbg_random, p_rng, in mbedtls_ecdsa_sign_det_restartable()
656 void *p_rng, in mbedtls_ecdsa_write_signature_restartable() argument
[all …]
Decjpake.c366 void *p_rng) in ecjpake_zkp_write() argument
384 G, &v, &V, f_rng, p_rng)); in ecjpake_zkp_write()
464 void *p_rng) in ecjpake_kkp_write() argument
475 f_rng, p_rng)); in ecjpake_kkp_write()
482 p, end, f_rng, p_rng)); in ecjpake_kkp_write()
539 void *p_rng) in ecjpake_kkpp_write() argument
546 &p, end, f_rng, p_rng)); in ecjpake_kkpp_write()
548 &p, end, f_rng, p_rng)); in ecjpake_kkpp_write()
575 void *p_rng) in mbedtls_ecjpake_write_round_one() argument
580 ID_MINE, buf, len, olen, f_rng, p_rng); in mbedtls_ecjpake_write_round_one()
[all …]
Ddhm.c181 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_random_below() argument
185 MBEDTLS_MPI_CHK(mbedtls_mpi_random(R, 3, M, f_rng, p_rng)); in dhm_random_below()
194 void *p_rng) in dhm_make_common() argument
206 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&ctx->X, x_size, f_rng, p_rng)); in dhm_make_common()
209 ret = dhm_random_below(&ctx->X, &ctx->P, f_rng, p_rng); in dhm_make_common()
238 void *p_rng) in mbedtls_dhm_make_params() argument
244 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_params()
323 void *p_rng) in mbedtls_dhm_make_public() argument
331 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_public()
356 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_update_blinding() argument
[all …]
Dpk_wrap.h57 void *p_rng);
71 void *p_rng, void *rs_ctx);
78 void *p_rng);
84 void *p_rng);
89 void *p_rng);
Drsa.c540 void *p_rng, in mbedtls_rsa_gen_key() argument
575 prime_quality, f_rng, p_rng)); in mbedtls_rsa_gen_key()
578 prime_quality, f_rng, p_rng)); in mbedtls_rsa_gen_key()
778 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_prepare_blinding() argument
802 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&ctx->Vf, ctx->len - 1, f_rng, p_rng)); in rsa_prepare_blinding()
805 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&R, ctx->len - 1, f_rng, p_rng)); in rsa_prepare_blinding()
861 void *p_rng, in mbedtls_rsa_private() argument
950 MBEDTLS_MPI_CHK(rsa_prepare_blinding(ctx, f_rng, p_rng)); in mbedtls_rsa_private()
965 f_rng, p_rng)); in mbedtls_rsa_private()
976 f_rng, p_rng)); in mbedtls_rsa_private()
[all …]
Dpk.c607 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_pk_sign_restartable() argument
632 f_rng, p_rng, rs_ctx->rs_ctx); in mbedtls_pk_sign_restartable()
651 f_rng, p_rng); in mbedtls_pk_sign_restartable()
660 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_sign() argument
664 f_rng, p_rng, NULL); in mbedtls_pk_sign()
677 void *p_rng) in mbedtls_pk_sign_ext() argument
694 sig, sig_size, sig_len, f_rng, p_rng); in mbedtls_pk_sign_ext()
729 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_decrypt() argument
740 output, olen, osize, f_rng, p_rng); in mbedtls_pk_decrypt()
749 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_encrypt() argument
[all …]
Decp.c1206 MBEDTLS_MPI_CHK(mbedtls_mpi_random((X), 2, &grp->P, f_rng, p_rng))
1690 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in ecp_randomize_jac() argument
1694 return mbedtls_internal_ecp_randomize_jac(grp, pt, f_rng, p_rng); in ecp_randomize_jac()
2055 void *p_rng, in ecp_mul_comb_core() argument
2088 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, R, f_rng, p_rng)); in ecp_mul_comb_core()
2180 void *p_rng, in ecp_mul_comb_after_precomp() argument
2201 f_rng, p_rng, rs_ctx)); in ecp_mul_comb_after_precomp()
2224 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, RR, f_rng, p_rng)); in ecp_mul_comb_after_precomp()
2300 void *p_rng, in ecp_mul_comb() argument
2372 f_rng, p_rng, rs_ctx)); in ecp_mul_comb()
[all …]
Dpkparse.c113 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_parse_keyfile() argument
124 ret = mbedtls_pk_parse_key(ctx, buf, n, NULL, 0, f_rng, p_rng); in mbedtls_pk_parse_keyfile()
127 (const unsigned char *) pwd, strlen(pwd), f_rng, p_rng); in mbedtls_pk_parse_keyfile()
877 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in pk_parse_key_sec1_der() argument
980 f_rng, p_rng)) != 0) { in pk_parse_key_sec1_der()
1010 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in pk_parse_key_pkcs8_unencrypted_der() argument
1022 (void) p_rng; in pk_parse_key_pkcs8_unencrypted_der()
1088 (ret = pk_parse_key_sec1_der(mbedtls_pk_ec(*pk), p, len, f_rng, p_rng)) != 0) { in pk_parse_key_pkcs8_unencrypted_der()
1113 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in pk_parse_key_pkcs8_encrypted_der() argument
1204 return pk_parse_key_pkcs8_unencrypted_der(pk, buf, len, f_rng, p_rng); in pk_parse_key_pkcs8_encrypted_der()
[all …]
Dx509write_csr.c240 void *p_rng) in x509write_csr_der_internal() argument
335 f_rng, p_rng)) != 0) { in x509write_csr_der_internal()
392 void *p_rng) in mbedtls_x509write_csr_der() argument
403 f_rng, p_rng); in mbedtls_x509write_csr_der()
416 void *p_rng) in mbedtls_x509write_csr_pem() argument
422 f_rng, p_rng)) < 0) { in mbedtls_x509write_csr_pem()
Dssl_ticket.c85 if ((ret = ctx->f_rng(ctx->p_rng, key->name, sizeof(key->name))) != 0) { in ssl_ticket_gen_key()
89 if ((ret = ctx->f_rng(ctx->p_rng, buf, sizeof(buf))) != 0) { in ssl_ticket_gen_key()
214 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_ticket_setup() argument
254 ctx->p_rng = p_rng; in mbedtls_ssl_ticket_setup()
344 if ((ret = ctx->f_rng(ctx->p_rng, iv, TICKET_IV_BYTES)) != 0) { in mbedtls_ssl_ticket_write()
/mbedtls-3.5.0/include/mbedtls/
Drsa.h465 void *p_rng,
590 void *p_rng,
619 void *p_rng,
646 void *p_rng,
680 void *p_rng,
719 void *p_rng,
756 void *p_rng,
797 void *p_rng,
840 void *p_rng,
872 void *p_rng,
[all …]
Dpk.h260 void *p_rng,
577 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
615 void *p_rng);
651 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
674 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
697 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
716 void *p_rng);
833 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
897 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Decdh.h192 void *p_rng);
228 void *p_rng);
293 void *p_rng);
375 void *p_rng);
431 void *p_rng);
Decdsa.h175 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
286 void *p_rng,
487 void *p_rng);
534 void *p_rng,
621 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Decjpake.h177 void *p_rng);
218 void *p_rng);
258 void *p_rng);
281 void *p_rng);
Decp.h965 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
999 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
1159 void *p_rng);
1192 void *p_rng);
1220 void *p_rng);
1237 void *p_rng);
1301 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Ddhm.h199 void *p_rng);
266 void *p_rng);
297 void *p_rng);
/mbedtls-3.5.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.5.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.5.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