/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/ |
D | rsa.h | 167 void *p_rng, 235 void *p_rng, 260 void *p_rng, 283 void *p_rng, 309 void *p_rng, 338 void *p_rng, 364 void *p_rng, 392 void *p_rng, 426 void *p_rng, 453 void *p_rng, [all …]
|
D | ecdh.h | 73 void *p_rng ); 96 void *p_rng ); 131 void *p_rng ); 177 void *p_rng ); 208 void *p_rng );
|
D | pk_internal.h | 59 void *p_rng ); 65 void *p_rng ); 71 void *p_rng );
|
D | ecjpake.h | 147 void *p_rng ); 182 void *p_rng ); 216 void *p_rng );
|
D | dhm.h | 204 void *p_rng ); 233 void *p_rng ); 256 void *p_rng );
|
D | ecdsa.h | 77 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 147 void *p_rng ); 218 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
|
D | ssl_ticket.h | 66 void *p_rng; /*!< context for the RNG function */ member 106 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
|
D | ecp.h | 523 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 608 void *p_rng ); 628 void *p_rng ); 642 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
|
D | pk.h | 166 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, 348 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 369 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 390 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
|
D | pkcs11.h | 152 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_pkcs11_sign() argument 157 ((void) p_rng); in mbedtls_ssl_pkcs11_sign()
|
D | hmac_drbg.h | 232 int mbedtls_hmac_drbg_random_with_add( void *p_rng, 250 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len );
|
D | ctr_drbg.h | 226 int mbedtls_ctr_drbg_random_with_add( void *p_rng, 243 int mbedtls_ctr_drbg_random( void *p_rng,
|
D | x509_csr.h | 268 void *p_rng ); 290 void *p_rng );
|
D | bignum.h | 645 void *p_rng ); 686 void *p_rng ); 704 void *p_rng );
|
/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | ecdh.c | 46 void *p_rng ) in mbedtls_ecdh_gen_public() argument 48 return mbedtls_ecp_gen_keypair( grp, d, Q, f_rng, p_rng ); in mbedtls_ecdh_gen_public() 57 void *p_rng ) in mbedtls_ecdh_compute_shared() argument 69 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, &P, d, Q, f_rng, p_rng ) ); in mbedtls_ecdh_compute_shared() 121 void *p_rng ) in mbedtls_ecdh_make_params() argument 129 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, f_rng, p_rng ) ) in mbedtls_ecdh_make_params() 202 void *p_rng ) in mbedtls_ecdh_make_public() argument 209 if( ( ret = mbedtls_ecdh_gen_public( &ctx->grp, &ctx->d, &ctx->Q, f_rng, p_rng ) ) in mbedtls_ecdh_make_public() 244 void *p_rng ) in mbedtls_ecdh_calc_secret() argument 252 f_rng, p_rng ) ) != 0 ) in mbedtls_ecdh_calc_secret()
|
D | pk_wrap.c | 94 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_sign_wrap() argument 98 return( mbedtls_rsa_pkcs1_sign( (mbedtls_rsa_context *) ctx, f_rng, p_rng, MBEDTLS_RSA_PRIVATE, in rsa_sign_wrap() 105 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_decrypt_wrap() argument 110 return( mbedtls_rsa_pkcs1_decrypt( (mbedtls_rsa_context *) ctx, f_rng, p_rng, in rsa_decrypt_wrap() 117 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_encrypt_wrap() argument 125 f_rng, p_rng, MBEDTLS_RSA_PUBLIC, ilen, input, output ) ); in rsa_encrypt_wrap() 204 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 226 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in eckey_sign_wrap() argument 235 f_rng, p_rng ); in eckey_sign_wrap() 343 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in ecdsa_sign_wrap() argument [all …]
|
D | rsa.c | 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() [all …]
|
D | ecjpake.c | 310 void *p_rng ) in ecjpake_zkp_write() argument 327 G, &v, &V, f_rng, p_rng ) ); in ecjpake_zkp_write() 408 void *p_rng ) in ecjpake_kkp_write() argument 418 f_rng, p_rng ) ); in ecjpake_kkp_write() 425 p, end, f_rng, p_rng ) ); in ecjpake_kkp_write() 481 void *p_rng ) in ecjpake_kkpp_write() argument 488 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write() 490 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write() 517 void *p_rng ) in mbedtls_ecjpake_write_round_one() argument 522 ID_MINE, buf, len, olen, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_one() [all …]
|
D | ecdsa.c | 74 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_ecdsa_sign() argument 97 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_keypair( grp, &k, &R, f_rng, p_rng ) ); in mbedtls_ecdsa_sign() 121 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &t, n_size, f_rng, p_rng ) ); in mbedtls_ecdsa_sign() 312 void *p_rng ) in mbedtls_ecdsa_write_signature() argument 322 (void) p_rng; in mbedtls_ecdsa_write_signature() 330 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature() 409 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_ecdsa_genkey() argument 412 mbedtls_ecp_gen_keypair( &ctx->grp, &ctx->d, &ctx->Q, f_rng, p_rng ) ); in mbedtls_ecdsa_genkey()
|
D | pk.c | 251 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_sign() argument 261 sig, sig_len, f_rng, p_rng ) ); in mbedtls_pk_sign() 270 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_decrypt() argument 279 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_decrypt() 288 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_encrypt() argument 297 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_encrypt()
|
D | ssl_ticket.c | 75 if( ( ret = ctx->f_rng( ctx->p_rng, key->name, sizeof( key->name ) ) ) != 0 ) in ssl_ticket_gen_key() 78 if( ( ret = ctx->f_rng( ctx->p_rng, buf, sizeof( buf ) ) ) != 0 ) in ssl_ticket_gen_key() 123 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_ticket_setup() argument 131 ctx->p_rng = p_rng; in mbedtls_ssl_ticket_setup() 326 if( ( ret = ctx->f_rng( ctx->p_rng, iv, 12 ) ) != 0 ) in mbedtls_ssl_ticket_write()
|
D | dhm.c | 154 void *p_rng ) in mbedtls_dhm_make_params() argument 168 mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ); in mbedtls_dhm_make_params() 239 void *p_rng ) in mbedtls_dhm_make_public() argument 254 mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ); in mbedtls_dhm_make_public() 287 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_update_blinding() argument 327 mbedtls_mpi_fill_random( &ctx->Vi, mbedtls_mpi_size( &ctx->P ), f_rng, p_rng ); in dhm_update_blinding() 351 void *p_rng ) in mbedtls_dhm_calc_secret() argument 367 MBEDTLS_MPI_CHK( dhm_update_blinding( ctx, f_rng, p_rng ) ); in mbedtls_dhm_calc_secret()
|
D | x509write_csr.c | 131 void *p_rng ) in mbedtls_x509write_csr_der() argument 202 f_rng, p_rng ) ) != 0 || in mbedtls_x509write_csr_der() 236 void *p_rng ) in mbedtls_x509write_csr_pem() argument 243 f_rng, p_rng ) ) < 0 ) in mbedtls_x509write_csr_pem()
|
D | ecp.c | 1079 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in ecp_randomize_jac() argument 1091 mbedtls_mpi_fill_random( &l, p_size, f_rng, p_rng ); in ecp_randomize_jac() 1277 void *p_rng ) in ecp_mul_comb_core() argument 1290 MBEDTLS_MPI_CHK( ecp_randomize_jac( grp, R, f_rng, p_rng ) ); in ecp_mul_comb_core() 1312 void *p_rng ) in ecp_mul_comb() argument 1399 MBEDTLS_MPI_CHK( ecp_mul_comb_core( grp, R, T, pre_len, k, d, f_rng, p_rng ) ); in ecp_mul_comb() 1461 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in ecp_randomize_mxz() argument 1473 mbedtls_mpi_fill_random( &l, p_size, f_rng, p_rng ); in ecp_randomize_mxz() 1553 void *p_rng ) in ecp_mul_mxz() argument 1577 MBEDTLS_MPI_CHK( ecp_randomize_mxz( grp, &RP, f_rng, p_rng ) ); in ecp_mul_mxz() [all …]
|
D | hmac_drbg.c | 249 int mbedtls_hmac_drbg_random_with_add( void *p_rng, in mbedtls_hmac_drbg_random_with_add() argument 254 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random_with_add() 309 int mbedtls_hmac_drbg_random( void *p_rng, unsigned char *output, size_t out_len ) in mbedtls_hmac_drbg_random() argument 312 mbedtls_hmac_drbg_context *ctx = (mbedtls_hmac_drbg_context *) p_rng; in mbedtls_hmac_drbg_random()
|