Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Drsa.h455 int (*f_rng)(void *, unsigned char *, size_t),
582 int (*f_rng)(void *, unsigned char *, size_t),
627 int (*f_rng)(void *, unsigned char *, size_t),
713 int (*f_rng)(void *, unsigned char *, size_t),
766 int (*f_rng)(void *, unsigned char *, size_t),
870 int (*f_rng)(void *, unsigned char *, size_t),
930 int (*f_rng)(void *, unsigned char *, size_t),
1033 int (*f_rng)(void *, unsigned char *, size_t),
1097 int (*f_rng)(void *, unsigned char *, size_t),
1150 int (*f_rng)(void *, unsigned char *, size_t),
[all …]
A Decdh.h180 int (*f_rng)(void *, unsigned char *, size_t),
219 int (*f_rng)(void *, unsigned char *, size_t),
284 int (*f_rng)(void *, unsigned char *, size_t),
366 int (*f_rng)(void *, unsigned char *, size_t),
423 int (*f_rng)(void *, unsigned char *, size_t),
A Dpk_internal.h57 int (*f_rng)(void *, unsigned char *, size_t),
71 int (*f_rng)(void *, unsigned char *, size_t),
78 int (*f_rng)(void *, unsigned char *, size_t),
84 int (*f_rng)(void *, unsigned char *, size_t),
A Decjpake.h165 int (*f_rng)(void *, unsigned char *, size_t),
206 int (*f_rng)(void *, unsigned char *, size_t),
246 int (*f_rng)(void *, unsigned char *, size_t),
A Dssl_ticket.h70 int (*f_rng)(void *, unsigned char *, size_t); member
111 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
A Decdsa.h174 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
374 int (*f_rng)(void *, unsigned char *, size_t),
420 int (*f_rng)(void *, unsigned char *, size_t),
566 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
A 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),
A Decp_internal.h125 mbedtls_ecp_point *pt, int (*f_rng)(void *, unsigned char *, size_t),
273 mbedtls_ecp_point *P, int (*f_rng)(void *, unsigned char *, size_t),
A 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),
A Dpk.h228 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
510 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
544 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
567 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
588 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
A Dpkcs11.h211 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_pkcs11_sign()
215 ((void) f_rng); in mbedtls_ssl_pkcs11_sign()
A Dx509_csr.h273 int (*f_rng)(void *, unsigned char *, size_t),
295 int (*f_rng)(void *, unsigned char *, size_t),
A Dbignum.h883 int (*f_rng)(void *, unsigned char *, size_t),
921 int (*f_rng)(void *, unsigned char *, size_t),
983 int (*f_rng)(void *, unsigned char *, size_t),
1016 int (*f_rng)(void *, unsigned char *, size_t),
1049 int (*f_rng)(void *, unsigned char *, size_t),
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Decdh.c74 int (*f_rng)(void *, unsigned char *, size_t), in ecdh_gen_public_restartable()
97 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdh_gen_public()
103 ECDH_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdh_gen_public()
299 int (*f_rng)(void *, in ecdh_make_params_internal()
328 f_rng, p_rng ) ) != 0 ) in ecdh_make_params_internal()
363 ECDH_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdh_make_params()
385 f_rng, p_rng, in mbedtls_ecdh_make_params()
522 int (*f_rng)(void *, in ecdh_make_public_internal()
569 ECDH_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdh_make_public()
589 f_rng, p_rng, in mbedtls_ecdh_make_public()
[all …]
A Ddhm.c160 MBEDTLS_MPI_CHK( mbedtls_mpi_random( R, 3, M, f_rng, p_rng ) ); in dhm_random_below()
185 ret = dhm_random_below( &ctx->X, &ctx->P, f_rng, p_rng ); in dhm_make_common()
210 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_params()
219 DHM_VALIDATE_RET( f_rng != NULL ); in mbedtls_dhm_make_params()
221 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_params()
304 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_public()
310 DHM_VALIDATE_RET( f_rng != NULL ); in mbedtls_dhm_make_public()
315 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_public()
402 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_calc_secret()
420 if( f_rng != NULL ) in mbedtls_dhm_calc_secret()
[all …]
A Drsa.c529 RSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_rsa_gen_key()
918 if( f_rng != NULL ) in mbedtls_rsa_private()
946 if( f_rng != NULL ) in mbedtls_rsa_private()
967 f_rng, p_rng ) ); in mbedtls_rsa_private()
978 f_rng, p_rng ) ); in mbedtls_rsa_private()
989 f_rng, p_rng ) ); in mbedtls_rsa_private()
1025 if( f_rng != NULL ) in mbedtls_rsa_private()
1057 if( f_rng != NULL ) in mbedtls_rsa_private()
1170 if( f_rng == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt()
1264 if( f_rng == NULL ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt()
[all …]
A Dpk_wrap.c112 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_sign_wrap()
123 return( mbedtls_rsa_pkcs1_sign( rsa, f_rng, p_rng, MBEDTLS_RSA_PRIVATE, in rsa_sign_wrap()
137 return( mbedtls_rsa_pkcs1_decrypt( rsa, f_rng, p_rng, in rsa_decrypt_wrap()
152 return( mbedtls_rsa_pkcs1_encrypt( rsa, f_rng, p_rng, MBEDTLS_RSA_PUBLIC, in rsa_encrypt_wrap()
271 f_rng, p_rng ); in eckey_sign_wrap()
376 f_rng, p_rng, &rs->ecdsa_rs ) ); in eckey_sign_rs_wrap()
645 md_alg, hash, hash_len, sig, sig_len, f_rng, p_rng ) ); in ecdsa_sign_wrap()
676 md_alg, hash, hash_len, sig, sig_len, f_rng, p_rng, in ecdsa_sign_rs_wrap()
784 ((void) f_rng); in rsa_alt_decrypt_wrap()
1007 ((void) f_rng); in pk_opaque_sign_wrap()
[all …]
A Decjpake.c423 f_rng, p_rng ) ); in ecjpake_kkp_write()
430 p, end, f_rng, p_rng ) ); in ecjpake_kkp_write()
493 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write()
495 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write()
530 ECJPAKE_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecjpake_write_round_one()
638 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &b, 16, f_rng, p_rng ) ); in ecjpake_mul_secret()
672 ECJPAKE_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecjpake_write_round_two()
688 &ctx->grp.N, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_two()
723 &p, end, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_two()
752 ECJPAKE_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecjpake_derive_secret()
[all …]
A Dssl_ticket.c81 if( ( ret = ctx->f_rng( ctx->p_rng, key->name, sizeof( key->name ) ) ) != 0 ) in ssl_ticket_gen_key()
84 if( ( ret = ctx->f_rng( ctx->p_rng, buf, sizeof( buf ) ) ) != 0 ) in ssl_ticket_gen_key()
130 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_ticket_setup()
137 ctx->f_rng = f_rng; in mbedtls_ssl_ticket_setup()
218 if( ctx == NULL || ctx->f_rng == NULL ) in mbedtls_ssl_ticket_write()
239 if( ( ret = ctx->f_rng( ctx->p_rng, iv, TICKET_IV_BYTES ) ) != 0 ) in mbedtls_ssl_ticket_write()
313 if( ctx == NULL || ctx->f_rng == NULL ) in mbedtls_ssl_ticket_parse()
A Dx509write_csr.c139 int (*f_rng)(void *, unsigned char *, size_t), in x509write_csr_der_internal()
238 f_rng, p_rng ) ) != 0 ) in x509write_csr_der_internal()
295 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_x509write_csr_der()
306 ret = x509write_csr_der_internal( ctx, buf, size, sig, f_rng, p_rng ); in mbedtls_x509write_csr_der()
318 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_x509write_csr_pem()
325 f_rng, p_rng ) ) < 0 ) in mbedtls_x509write_csr_pem()
A Decdsa.c255 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in ecdsa_sign_restartable()
405 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_ecdsa_sign()
411 ECDSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdsa_sign()
416 f_rng, p_rng, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_sign()
753 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdsa_write_signature_restartable()
769 hash, hlen, md_alg, f_rng, in mbedtls_ecdsa_write_signature_restartable()
778 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature_restartable()
782 hash, hlen, f_rng, p_rng, f_rng, in mbedtls_ecdsa_write_signature_restartable()
811 ctx, md_alg, hash, hlen, sig, slen, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_write_signature()
918 ECDSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdsa_genkey()
[all …]
A Decp.c2064 if( f_rng != 0 ) in ecp_mul_comb_core()
2200 if( f_rng != 0 ) in ecp_mul_comb_after_precomp()
2285 if( f_rng == NULL ) in ecp_mul_comb()
2288 f_rng = &ecp_drbg_random; in ecp_mul_comb()
2581 if( f_rng == NULL ) in ecp_mul_mxz()
2585 f_rng = &ecp_drbg_random; in ecp_mul_mxz()
2604 if( f_rng != NULL ) in ecp_mul_mxz()
2639 if( f_rng != NULL ) in ecp_mul_mxz()
3178 ECP_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecp_gen_privkey()
3207 ECP_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecp_gen_keypair_base()
[all …]
A Drsa_internal.c334 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_rsa_validate_params()
353 if( f_rng != NULL && P != NULL && in mbedtls_rsa_validate_params()
354 ( ret = mbedtls_mpi_is_prime_ext( P, 50, f_rng, p_rng ) ) != 0 ) in mbedtls_rsa_validate_params()
360 if( f_rng != NULL && Q != NULL && in mbedtls_rsa_validate_params()
361 ( ret = mbedtls_mpi_is_prime_ext( Q, 50, f_rng, p_rng ) ) != 0 ) in mbedtls_rsa_validate_params()
367 ((void) f_rng); in mbedtls_rsa_validate_params()
A Dpk.c404 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_pk_sign_restartable()
428 hash, hash_len, sig, sig_len, f_rng, p_rng, rs_ctx->rs_ctx ); in mbedtls_pk_sign_restartable()
443 sig, sig_len, 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()
455 sig, sig_len, f_rng, p_rng, NULL ) ); in mbedtls_pk_sign()
464 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_decrypt()
478 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_decrypt()
487 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_encrypt()
501 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_encrypt()
A Decp_invasive.h74 int (*f_rng)(void *, unsigned char *, size_t),

Completed in 45 milliseconds

12