Home
last modified time | relevance | path

Searched refs:f_rng (Results 1 – 25 of 62) sorted by relevance

123

/mbedtls-3.5.0/library/
Decdh.c68 int (*f_rng)(void *, unsigned char *, size_t), in ecdh_gen_public_restartable()
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()
94 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdh_gen_public()
97 return ecdh_gen_public_restartable(grp, d, Q, f_rng, p_rng, NULL); in mbedtls_ecdh_gen_public()
108 int (*f_rng)(void *, unsigned char *, size_t), in ecdh_compute_shared_restartable()
118 f_rng, p_rng, rs_ctx)); in ecdh_compute_shared_restartable()
138 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdh_compute_shared()
142 f_rng, p_rng, NULL); in mbedtls_ecdh_compute_shared()
279 int (*f_rng)(void *, in ecdh_make_params_internal()
[all …]
Dpk_wrap.c360 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_sign_wrap()
362 ((void) f_rng); in rsa_sign_wrap()
380 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_sign_wrap()
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()
414 ((void) f_rng); in rsa_decrypt_wrap()
472 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in rsa_decrypt_wrap()
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()
500 ((void) f_rng); in rsa_encrypt_wrap()
[all …]
Ddhm.c181 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_random_below()
185 MBEDTLS_MPI_CHK(mbedtls_mpi_random(R, 3, M, f_rng, p_rng)); in dhm_random_below()
193 int (*f_rng)(void *, unsigned char *, size_t), in dhm_make_common()
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()
237 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_params()
244 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_params()
322 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_public()
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()
[all …]
Decjpake.c365 int (*f_rng)(void *, unsigned char *, size_t), in ecjpake_zkp_write()
384 G, &v, &V, f_rng, p_rng)); in ecjpake_zkp_write()
463 int (*f_rng)(void *, unsigned char *, size_t), in ecjpake_kkp_write()
475 f_rng, p_rng)); in ecjpake_kkp_write()
482 p, end, f_rng, p_rng)); in ecjpake_kkp_write()
538 int (*f_rng)(void *, unsigned char *, size_t), in ecjpake_kkpp_write()
546 &p, end, f_rng, p_rng)); in ecjpake_kkpp_write()
548 &p, end, f_rng, p_rng)); in ecjpake_kkpp_write()
574 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecjpake_write_round_one()
580 ID_MINE, buf, len, olen, f_rng, p_rng); in mbedtls_ecjpake_write_round_one()
[all …]
Drsa.c539 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_rsa_gen_key()
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()
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()
860 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_rsa_private()
900 if (f_rng == NULL) { in mbedtls_rsa_private()
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()
[all …]
Dpk_wrap.h56 int (*f_rng)(void *, unsigned char *, size_t),
70 int (*f_rng)(void *, unsigned char *, size_t),
77 int (*f_rng)(void *, unsigned char *, size_t),
83 int (*f_rng)(void *, unsigned char *, size_t),
88 int (*f_rng)(void *, unsigned char *, size_t),
Decdsa.c245 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ecdsa_sign_restartable()
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()
398 f_rng, p_rng, f_rng, p_rng, NULL); in mbedtls_ecdsa_sign()
655 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdsa_write_signature_restartable()
661 if (f_rng == NULL) { in mbedtls_ecdsa_write_signature_restartable()
670 hash, hlen, md_alg, f_rng, in mbedtls_ecdsa_write_signature_restartable()
679 hash, hlen, f_rng, p_rng)); in mbedtls_ecdsa_write_signature_restartable()
683 hash, hlen, f_rng, p_rng, f_rng, in mbedtls_ecdsa_write_signature_restartable()
704 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdsa_write_signature()
[all …]
Dpk.c607 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_pk_sign_restartable()
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()
664 f_rng, p_rng, NULL); in mbedtls_pk_sign()
676 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_pk_sign_ext()
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()
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()
[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()
1694 return mbedtls_internal_ecp_randomize_jac(grp, pt, f_rng, p_rng); in ecp_randomize_jac()
2054 int (*f_rng)(void *, unsigned char *, size_t), in ecp_mul_comb_core()
2087 if (f_rng != 0) { in ecp_mul_comb_core()
2088 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, R, f_rng, p_rng)); in ecp_mul_comb_core()
2179 int (*f_rng)(void *, unsigned char *, size_t), in ecp_mul_comb_after_precomp()
2201 f_rng, p_rng, rs_ctx)); in ecp_mul_comb_after_precomp()
2223 if (f_rng != 0) { 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()
[all …]
Dpkparse.c113 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_pk_parse_keyfile()
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()
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()
1021 (void) f_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()
1204 return pk_parse_key_pkcs8_unencrypted_der(pk, buf, len, f_rng, p_rng); in pk_parse_key_pkcs8_encrypted_der()
[all …]
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()
253 ctx->f_rng = f_rng; in mbedtls_ssl_ticket_setup()
320 if (ctx == NULL || ctx->f_rng == NULL) { in mbedtls_ssl_ticket_write()
344 if ((ret = ctx->f_rng(ctx->p_rng, iv, TICKET_IV_BYTES)) != 0) { in mbedtls_ssl_ticket_write()
435 if (ctx == NULL || ctx->f_rng == NULL) { in mbedtls_ssl_ticket_parse()
Dx509write_csr.c239 int (*f_rng)(void *, unsigned char *, size_t), in x509write_csr_der_internal()
335 f_rng, p_rng)) != 0) { in x509write_csr_der_internal()
391 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_x509write_csr_der()
403 f_rng, p_rng); in mbedtls_x509write_csr_der()
415 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_x509write_csr_pem()
422 f_rng, p_rng)) < 0) { in mbedtls_x509write_csr_pem()
Drsa_alt_helpers.c274 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_rsa_validate_params()
293 if (f_rng != NULL && P != NULL && in mbedtls_rsa_validate_params()
294 (ret = mbedtls_mpi_is_prime_ext(P, 50, f_rng, p_rng)) != 0) { in mbedtls_rsa_validate_params()
299 if (f_rng != NULL && Q != NULL && in mbedtls_rsa_validate_params()
300 (ret = mbedtls_mpi_is_prime_ext(Q, 50, f_rng, p_rng)) != 0) { in mbedtls_rsa_validate_params()
305 ((void) f_rng); in mbedtls_rsa_validate_params()
/mbedtls-3.5.0/include/mbedtls/
Drsa.h464 int (*f_rng)(void *, unsigned char *, size_t),
589 int (*f_rng)(void *, unsigned char *, size_t),
618 int (*f_rng)(void *, unsigned char *, size_t),
645 int (*f_rng)(void *, unsigned char *, size_t),
679 int (*f_rng)(void *, unsigned char *, size_t),
718 int (*f_rng)(void *, unsigned char *, size_t),
755 int (*f_rng)(void *, unsigned char *, size_t),
796 int (*f_rng)(void *, unsigned char *, size_t),
839 int (*f_rng)(void *, unsigned char *, size_t),
871 int (*f_rng)(void *, unsigned char *, size_t),
[all …]
Dpk.h259 int (*f_rng)(void *, unsigned char *, size_t),
577 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
614 int (*f_rng)(void *, unsigned char *, size_t),
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);
715 int (*f_rng)(void *, unsigned char *, size_t),
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.h191 int (*f_rng)(void *, unsigned char *, size_t),
227 int (*f_rng)(void *, unsigned char *, size_t),
292 int (*f_rng)(void *, unsigned char *, size_t),
374 int (*f_rng)(void *, unsigned char *, size_t),
430 int (*f_rng)(void *, unsigned char *, size_t),
Decdsa.h175 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
285 int (*f_rng)(void *, unsigned char *, size_t),
486 int (*f_rng)(void *, unsigned char *, size_t),
533 int (*f_rng)(void *, unsigned char *, size_t),
621 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Decjpake.h176 int (*f_rng)(void *, unsigned char *, size_t),
217 int (*f_rng)(void *, unsigned char *, size_t),
257 int (*f_rng)(void *, unsigned char *, size_t),
280 int (*f_rng)(void *, unsigned char *, size_t),
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,
1158 int (*f_rng)(void *, unsigned char *, size_t),
1191 int (*f_rng)(void *, unsigned char *, size_t),
1219 int (*f_rng)(void *, unsigned char *, size_t),
1236 int (*f_rng)(void *, unsigned char *, size_t),
1301 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng);
Ddhm.h198 int (*f_rng)(void *, unsigned char *, size_t),
265 int (*f_rng)(void *, unsigned char *, size_t),
296 int (*f_rng)(void *, unsigned char *, size_t),
Dbignum.h918 int (*f_rng)(void *, unsigned char *, size_t),
956 int (*f_rng)(void *, unsigned char *, size_t),
1020 int (*f_rng)(void *, unsigned char *, size_t),
1053 int (*f_rng)(void *, unsigned char *, size_t),
/mbedtls-3.5.0/3rdparty/everest/library/
Deverest.c50 int( *f_rng )( void *, unsigned char *, size_t ), in mbedtls_everest_make_params()
54 return mbedtls_x25519_make_params( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_params()
78 int( *f_rng )( void *, unsigned char *, size_t ), in mbedtls_everest_make_public()
82 return mbedtls_x25519_make_public( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_public()
94 int( *f_rng )( void *, unsigned char *, size_t ), in mbedtls_everest_calc_secret()
98 return mbedtls_x25519_calc_secret( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_calc_secret()
Dx25519.c61 int( *f_rng )(void *, unsigned char *, size_t), in mbedtls_x25519_make_params()
68 if( ( ret = f_rng( p_rng, ctx->our_secret, MBEDTLS_X25519_KEY_SIZE_BYTES ) ) != 0 ) in mbedtls_x25519_make_params()
121 int( *f_rng )(void *, unsigned char *, size_t), in mbedtls_x25519_calc_secret()
126 (( void )f_rng); in mbedtls_x25519_calc_secret()
147 int( *f_rng )(void *, unsigned char *, size_t), in mbedtls_x25519_make_public()
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/3rdparty/everest/include/everest/
Dx25519.h83 int( *f_rng )(void *, unsigned char *, size_t),
142 int( *f_rng )(void *, unsigned char *, size_t),
165 int( *f_rng )(void *, unsigned char *, size_t),
Deverest.h95 int( *f_rng )( void *, unsigned char *, size_t ),
180 int( *f_rng )( void *, unsigned char *, size_t ),
227 int( *f_rng )( void *, unsigned char *, size_t ),

123