Home
last modified time | relevance | path

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

123

/third_party/mbedtls/library/
Decdh.c77 void *p_rng, in ecdh_gen_public_restartable() argument
86 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_privkey( grp, d, f_rng, p_rng ) ); in ecdh_gen_public_restartable()
89 f_rng, p_rng, rs_ctx ) ); in ecdh_gen_public_restartable()
100 void *p_rng ) in mbedtls_ecdh_gen_public() argument
106 return( ecdh_gen_public_restartable( grp, d, Q, f_rng, p_rng, NULL ) ); in mbedtls_ecdh_gen_public()
118 void *p_rng, in ecdh_compute_shared_restartable() argument
127 f_rng, p_rng, rs_ctx ) ); in ecdh_compute_shared_restartable()
149 void *p_rng ) in mbedtls_ecdh_compute_shared() argument
156 f_rng, p_rng, NULL ) ); in mbedtls_ecdh_compute_shared()
304 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.c112 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_sign_wrap() argument
125 return( mbedtls_rsa_pkcs1_sign( rsa, f_rng, p_rng, in rsa_sign_wrap()
133 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_decrypt_wrap() argument
140 return( mbedtls_rsa_pkcs1_decrypt( rsa, f_rng, p_rng, in rsa_decrypt_wrap()
147 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_encrypt_wrap() argument
155 return( mbedtls_rsa_pkcs1_encrypt( rsa, f_rng, p_rng, in rsa_encrypt_wrap()
161 void *p_rng ) in rsa_check_pair_wrap() argument
164 (void) p_rng; in rsa_check_pair_wrap()
253 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
275 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in eckey_sign_wrap() argument
[all …]
Dpk_wrap.h54 void *p_rng );
68 void *p_rng, void *rs_ctx );
75 void *p_rng );
81 void *p_rng );
86 void *p_rng );
Decdsa.c255 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in ecdsa_sign_restartable() argument
318 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_privkey( grp, pk, f_rng, p_rng ) ); in ecdsa_sign_restartable()
405 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_ecdsa_sign() argument
416 f_rng, p_rng, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_sign()
437 mbedtls_hmac_drbg_context *p_rng = &rng_ctx; in ecdsa_sign_det_restartable() local
455 p_rng = &rs_ctx->det->rng_ctx; in ecdsa_sign_det_restartable()
467 mbedtls_hmac_drbg_seed_buf( p_rng, md_info, data, 2 * grp_len ); in ecdsa_sign_det_restartable()
479 mbedtls_hmac_drbg_random, p_rng ); in ecdsa_sign_det_restartable()
482 mbedtls_hmac_drbg_random, p_rng, in ecdsa_sign_det_restartable()
683 void *p_rng, in mbedtls_ecdsa_write_signature_restartable() argument
[all …]
Ddhm.c195 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_random_below() argument
199 MBEDTLS_MPI_CHK( mbedtls_mpi_random( R, 3, M, f_rng, p_rng ) ); in dhm_random_below()
208 void *p_rng ) in dhm_make_common() argument
219 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ) ); in dhm_make_common()
224 ret = dhm_random_below( &ctx->X, &ctx->P, f_rng, p_rng ); in dhm_make_common()
250 void *p_rng ) in mbedtls_dhm_make_params() argument
260 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_params()
341 void *p_rng ) in mbedtls_dhm_make_public() argument
351 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_public()
373 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_update_blinding() argument
[all …]
Decjpake.c329 void *p_rng ) in ecjpake_zkp_write() argument
346 G, &v, &V, f_rng, p_rng ) ); in ecjpake_zkp_write()
427 void *p_rng ) in ecjpake_kkp_write() argument
437 f_rng, p_rng ) ); in ecjpake_kkp_write()
444 p, end, f_rng, p_rng ) ); in ecjpake_kkp_write()
500 void *p_rng ) in ecjpake_kkpp_write() argument
507 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write()
509 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write()
539 void *p_rng ) in mbedtls_ecjpake_write_round_one() argument
549 ID_MINE, buf, len, olen, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_one()
[all …]
Drsa.c540 void *p_rng, in mbedtls_rsa_gen_key() argument
578 prime_quality, f_rng, p_rng ) ); in mbedtls_rsa_gen_key()
581 prime_quality, f_rng, p_rng ) ); in mbedtls_rsa_gen_key()
791 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_prepare_blinding() argument
817 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->Vf, ctx->len - 1, f_rng, p_rng ) ); in rsa_prepare_blinding()
820 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &R, ctx->len - 1, f_rng, p_rng ) ); in rsa_prepare_blinding()
875 void *p_rng, in mbedtls_rsa_private() argument
968 MBEDTLS_MPI_CHK( rsa_prepare_blinding( ctx, f_rng, p_rng ) ); in mbedtls_rsa_private()
983 f_rng, p_rng ) ); in mbedtls_rsa_private()
994 f_rng, p_rng ) ); in mbedtls_rsa_private()
[all …]
Dpk.c400 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_pk_sign_restartable() argument
426 f_rng, p_rng, rs_ctx->rs_ctx ); in mbedtls_pk_sign_restartable()
443 f_rng, p_rng ) ); in mbedtls_pk_sign_restartable()
452 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_sign() argument
456 f_rng, p_rng, NULL ) ); in mbedtls_pk_sign()
465 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_decrypt() argument
479 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_decrypt()
488 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_encrypt() argument
502 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_encrypt()
511 void *p_rng ) in mbedtls_pk_check_pair() argument
[all …]
Dx509write_csr.c141 void *p_rng ) in x509write_csr_der_internal() argument
240 f_rng, p_rng ) ) != 0 ) in x509write_csr_der_internal()
298 void *p_rng ) in mbedtls_x509write_csr_der() argument
310 f_rng, p_rng ); in mbedtls_x509write_csr_der()
323 void *p_rng ) in mbedtls_x509write_csr_pem() argument
329 f_rng, p_rng ) ) < 0 ) in mbedtls_x509write_csr_pem()
Dpkparse.c127 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_parse_keyfile() argument
140 ret = mbedtls_pk_parse_key( ctx, buf, n, NULL, 0, f_rng, p_rng ); in mbedtls_pk_parse_keyfile()
143 (const unsigned char *) pwd, strlen( pwd ), f_rng, p_rng ); in mbedtls_pk_parse_keyfile()
864 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in pk_parse_key_sec1_der() argument
971 f_rng, p_rng ) ) != 0 ) in pk_parse_key_sec1_der()
1003 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in pk_parse_key_pkcs8_unencrypted_der() argument
1015 (void) p_rng; in pk_parse_key_pkcs8_unencrypted_der()
1080 ( ret = pk_parse_key_sec1_der( mbedtls_pk_ec( *pk ), p, len, f_rng, p_rng ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
1106 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in pk_parse_key_pkcs8_encrypted_der() argument
1198 return( pk_parse_key_pkcs8_unencrypted_der( pk, buf, len, f_rng, p_rng ) ); in pk_parse_key_pkcs8_encrypted_der()
[all …]
Dssl_ticket.c80 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()
128 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_ticket_setup() argument
136 ctx->p_rng = p_rng; in mbedtls_ssl_ticket_setup()
235 if( ( ret = ctx->f_rng( ctx->p_rng, iv, TICKET_IV_BYTES ) ) != 0 ) in mbedtls_ssl_ticket_write()
Decp.c1544 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in ecp_randomize_jac() argument
1548 return( mbedtls_internal_ecp_randomize_jac( grp, pt, f_rng, p_rng ) ); in ecp_randomize_jac()
1560 MBEDTLS_MPI_CHK( mbedtls_mpi_random( &l, 2, &grp->P, f_rng, p_rng ) ); in ecp_randomize_jac()
1877 void *p_rng, in ecp_mul_comb_core() argument
1912 MBEDTLS_MPI_CHK( ecp_randomize_jac( grp, R, f_rng, p_rng ) ); in ecp_mul_comb_core()
2003 void *p_rng, in ecp_mul_comb_after_precomp() argument
2024 f_rng, p_rng, rs_ctx ) ); in ecp_mul_comb_after_precomp()
2046 MBEDTLS_MPI_CHK( ecp_randomize_jac( grp, RR, f_rng, p_rng ) ); in ecp_mul_comb_after_precomp()
2117 void *p_rng, in ecp_mul_comb() argument
2195 f_rng, p_rng, rs_ctx ) ); in ecp_mul_comb()
[all …]
/third_party/mbedtls/include/mbedtls/
Drsa.h444 void *p_rng,
569 void *p_rng,
598 void *p_rng,
625 void *p_rng,
659 void *p_rng,
698 void *p_rng,
735 void *p_rng,
776 void *p_rng,
819 void *p_rng,
851 void *p_rng,
[all …]
Dpk.h253 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
536 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
571 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
594 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
617 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
636 void *p_rng );
702 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
755 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
Decdh.h197 void *p_rng );
233 void *p_rng );
298 void *p_rng );
380 void *p_rng );
436 void *p_rng );
Decp.h943 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
977 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
1137 void *p_rng );
1170 void *p_rng );
1198 void *p_rng );
1215 void *p_rng );
1279 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
Decdsa.h171 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
312 void *p_rng );
359 void *p_rng,
446 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
Decjpake.h178 void *p_rng );
219 void *p_rng );
259 void *p_rng );
Ddhm.h201 void *p_rng );
268 void *p_rng );
299 void *p_rng );
/third_party/mbedtls/3rdparty/everest/library/
Deverest.c56 void *p_rng ) in mbedtls_everest_make_params() argument
59 return mbedtls_x25519_make_params( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_params()
84 void *p_rng ) in mbedtls_everest_make_public() argument
87 return mbedtls_x25519_make_public( x25519_ctx, olen, buf, blen, f_rng, p_rng ); in mbedtls_everest_make_public()
100 void *p_rng ) in mbedtls_everest_calc_secret() argument
103 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()
/third_party/mbedtls/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 );
/third_party/mbedtls/programs/fuzz/
Dcommon.c57 int dummy_random( void *p_rng, unsigned char *output, size_t output_len ) in dummy_random() argument
64 ret = mbedtls_ctr_drbg_random(p_rng, output, output_len); in dummy_random()
66 (void) p_rng; in dummy_random()

123