/AliOS-Things-master/components/mbedtls/library/ |
A D | ecdh.c | 62 int (*f_rng)(void *, unsigned char *, size_t), in ecdh_gen_public_restartable() 85 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdh_gen_public() 91 ECDH_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdh_gen_public() 275 int (*f_rng)(void *, in ecdh_make_params_internal() 304 f_rng, p_rng ) ) != 0 ) in ecdh_make_params_internal() 339 ECDH_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdh_make_params() 356 f_rng, p_rng, in mbedtls_ecdh_make_params() 465 int (*f_rng)(void *, in ecdh_make_public_internal() 512 ECDH_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdh_make_public() 527 f_rng, p_rng, in mbedtls_ecdh_make_public() [all …]
|
A D | pk_wrap.c | 107 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_sign_wrap() 118 return( mbedtls_rsa_pkcs1_sign( rsa, f_rng, p_rng, MBEDTLS_RSA_PRIVATE, in rsa_sign_wrap() 125 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in rsa_decrypt_wrap() 132 return( mbedtls_rsa_pkcs1_decrypt( rsa, f_rng, p_rng, in rsa_decrypt_wrap() 147 return( mbedtls_rsa_pkcs1_encrypt( rsa, f_rng, p_rng, MBEDTLS_RSA_PUBLIC, in rsa_encrypt_wrap() 266 f_rng, p_rng ); in eckey_sign_wrap() 283 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, 371 f_rng, p_rng, &rs->ecdsa_rs ) ); in eckey_sign_rs_wrap() 497 md_alg, hash, hash_len, sig, sig_len, f_rng, p_rng ) ); in ecdsa_sign_wrap() 528 md_alg, hash, hash_len, sig, sig_len, f_rng, p_rng, in ecdsa_sign_rs_wrap() [all …]
|
A D | rsa.c | 534 RSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_rsa_gen_key() 892 if( f_rng != NULL ) in mbedtls_rsa_private() 920 if( f_rng != NULL ) in mbedtls_rsa_private() 941 f_rng, p_rng ) ); in mbedtls_rsa_private() 952 f_rng, p_rng ) ); in mbedtls_rsa_private() 963 f_rng, p_rng ) ); in mbedtls_rsa_private() 999 if( f_rng != NULL ) in mbedtls_rsa_private() 1031 if( f_rng != NULL ) in mbedtls_rsa_private() 1144 if( f_rng == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt() 1237 if( f_rng == NULL ) in mbedtls_rsa_rsaes_pkcs1_v15_encrypt() [all …]
|
A D | ecjpake.c | 433 f_rng, p_rng ) ); in ecjpake_kkp_write() 440 p, end, f_rng, p_rng ) ); in ecjpake_kkp_write() 503 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write() 505 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write() 540 ECJPAKE_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecjpake_write_round_one() 648 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &b, 16, f_rng, p_rng ) ); in ecjpake_mul_secret() 682 ECJPAKE_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecjpake_write_round_two() 698 &ctx->grp.N, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_two() 733 &p, end, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_two() 762 ECJPAKE_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecjpake_derive_secret() [all …]
|
A D | dhm.c | 163 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_params() 172 DHM_VALIDATE_RET( f_rng != NULL ); in mbedtls_dhm_make_params() 182 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ) ); in mbedtls_dhm_make_params() 281 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_public() 287 DHM_VALIDATE_RET( f_rng != NULL ); in mbedtls_dhm_make_public() 300 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ) ); in mbedtls_dhm_make_public() 333 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_update_blinding() 396 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_calc_secret() 414 if( f_rng != NULL ) in mbedtls_dhm_calc_secret() 416 MBEDTLS_MPI_CHK( dhm_update_blinding( ctx, f_rng, p_rng ) ); in mbedtls_dhm_calc_secret() [all …]
|
A D | ssl_ticket.c | 71 if( ( ret = ctx->f_rng( ctx->p_rng, key->name, sizeof( key->name ) ) ) != 0 ) in ssl_ticket_gen_key() 74 if( ( ret = ctx->f_rng( ctx->p_rng, buf, sizeof( buf ) ) ) != 0 ) in ssl_ticket_gen_key() 119 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_ticket_setup() 126 ctx->f_rng = f_rng; in mbedtls_ssl_ticket_setup() 300 if( ctx == NULL || ctx->f_rng == NULL ) in mbedtls_ssl_ticket_write() 322 if( ( ret = ctx->f_rng( ctx->p_rng, iv, 12 ) ) != 0 ) in mbedtls_ssl_ticket_write() 394 if( ctx == NULL || ctx->f_rng == NULL ) in mbedtls_ssl_ticket_parse()
|
A D | ecdsa.c | 256 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in ecdsa_sign_restartable() 352 MBEDTLS_MPI_CHK( mbedtls_ecp_gen_privkey( grp, &t, f_rng, p_rng ) ); in ecdsa_sign_restartable() 386 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_ecdsa_sign() 392 ECDSA_VALIDATE_RET( f_rng != NULL ); in mbedtls_ecdsa_sign() 396 f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_sign() 644 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_ecdsa_write_signature_restartable() 659 (void) f_rng; in mbedtls_ecdsa_write_signature_restartable() 669 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature_restartable() 672 hash, hlen, f_rng, p_rng, rs_ctx ) ); in mbedtls_ecdsa_write_signature_restartable() 700 ctx, md_alg, hash, hlen, sig, slen, f_rng, p_rng, NULL ) ); in mbedtls_ecdsa_write_signature() [all …]
|
A D | pk.c | 366 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_pk_sign_restartable() 390 hash, hash_len, sig, sig_len, f_rng, p_rng, rs_ctx->rs_ctx ); in mbedtls_pk_sign_restartable() 405 sig, sig_len, f_rng, p_rng ) ); in mbedtls_pk_sign_restartable() 414 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_sign() 417 sig, sig_len, f_rng, p_rng, NULL ) ); in mbedtls_pk_sign() 426 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_decrypt() 440 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_decrypt() 449 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in mbedtls_pk_encrypt() 463 output, olen, osize, f_rng, p_rng ) ); in mbedtls_pk_encrypt()
|
A D | rsa_internal.c | 340 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_rsa_validate_params() 359 if( f_rng != NULL && P != NULL && in mbedtls_rsa_validate_params() 360 ( ret = mbedtls_mpi_is_prime_ext( P, 50, f_rng, p_rng ) ) != 0 ) in mbedtls_rsa_validate_params() 366 if( f_rng != NULL && Q != NULL && in mbedtls_rsa_validate_params() 367 ( ret = mbedtls_mpi_is_prime_ext( Q, 50, f_rng, p_rng ) ) != 0 ) in mbedtls_rsa_validate_params() 373 ((void) f_rng); in mbedtls_rsa_validate_params()
|
A D | ecp.c | 1815 if( f_rng != 0 ) in ecp_mul_comb_core() 1928 f_rng, p_rng, rs_ctx ) ); in ecp_mul_comb_after_precomp() 2285 if( f_rng != NULL ) 2361 MBEDTLS_MPI_CHK( ecp_mul_mxz( grp, R, m, P, f_rng, p_rng ) ); 2678 int (*f_rng)(void *, unsigned char *, size_t), 2686 ECP_VALIDATE_RET( f_rng != NULL ); 2763 int (*f_rng)(void *, unsigned char *, size_t), 2771 ECP_VALIDATE_RET( f_rng != NULL ); 2774 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, Q, d, G, f_rng, p_rng ) ); 2791 ECP_VALIDATE_RET( f_rng != NULL ); [all …]
|
A D | x509write_csr.c | 126 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_x509write_csr_der() 194 f_rng, p_rng ) ) != 0 ) in mbedtls_x509write_csr_der() 238 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_x509write_csr_pem() 246 f_rng, p_rng ) ) < 0 ) in mbedtls_x509write_csr_pem()
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | rsa.h | 442 int (*f_rng)(void *, unsigned char *, size_t), 569 int (*f_rng)(void *, unsigned char *, size_t), 613 int (*f_rng)(void *, unsigned char *, size_t), 697 int (*f_rng)(void *, unsigned char *, size_t), 750 int (*f_rng)(void *, unsigned char *, size_t), 854 int (*f_rng)(void *, unsigned char *, size_t), 913 int (*f_rng)(void *, unsigned char *, size_t), 960 int (*f_rng)(void *, unsigned char *, size_t), 1021 int (*f_rng)(void *, unsigned char *, size_t), 1074 int (*f_rng)(void *, unsigned char *, size_t), [all …]
|
A D | ecdh.h | 168 int (*f_rng)(void *, unsigned char *, size_t), 207 int (*f_rng)(void *, unsigned char *, size_t), 272 int (*f_rng)(void *, unsigned char *, size_t), 354 int (*f_rng)(void *, unsigned char *, size_t), 411 int (*f_rng)(void *, unsigned char *, size_t),
|
A D | pk_internal.h | 59 int (*f_rng)(void *, unsigned char *, size_t), 73 int (*f_rng)(void *, unsigned char *, size_t), 80 int (*f_rng)(void *, unsigned char *, size_t), 86 int (*f_rng)(void *, unsigned char *, size_t),
|
A D | ecdsa.h | 155 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 287 int (*f_rng)(void *, unsigned char *, size_t), 333 int (*f_rng)(void *, unsigned char *, size_t), 479 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
|
A D | ecp.h | 830 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 864 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, 1009 int (*f_rng)(void *, unsigned char *, size_t), 1042 int (*f_rng)(void *, unsigned char *, size_t), 1070 int (*f_rng)(void *, unsigned char *, size_t), 1087 int (*f_rng)(void *, unsigned char *, size_t),
|
A D | ecjpake.h | 162 int (*f_rng)(void *, unsigned char *, size_t), 203 int (*f_rng)(void *, unsigned char *, size_t), 243 int (*f_rng)(void *, unsigned char *, size_t),
|
A D | pk.h | 184 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, 423 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 452 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, 475 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ); 496 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng );
|
A D | dhm.h | 189 int (*f_rng)(void *, unsigned char *, size_t), 256 int (*f_rng)(void *, unsigned char *, size_t), 287 int (*f_rng)(void *, unsigned char *, size_t),
|
A D | ssl_ticket.h | 66 int (*f_rng)(void *, unsigned char *, size_t); member 107 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
|
A D | ecp_internal.h | 121 mbedtls_ecp_point *pt, int (*f_rng)(void *, unsigned char *, size_t), 269 mbedtls_ecp_point *P, int (*f_rng)(void *, unsigned char *, size_t),
|
A D | pkcs11.h | 154 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ssl_pkcs11_sign() 158 ((void) f_rng); in mbedtls_ssl_pkcs11_sign()
|
A D | bignum.h | 815 int (*f_rng)(void *, unsigned char *, size_t), 877 int (*f_rng)(void *, unsigned char *, size_t), 910 int (*f_rng)(void *, unsigned char *, size_t), 943 int (*f_rng)(void *, unsigned char *, size_t),
|
/AliOS-Things-master/components/mbedtls/platform/yoc/include/ |
A D | rsa_alt.h | 139 int (*f_rng)(void *, unsigned char *, size_t), 166 int (*f_rng)(void *, unsigned char *, size_t), 198 int (*f_rng)(void *, unsigned char *, size_t), 229 int (*f_rng)(void *, unsigned char *, size_t),
|
/AliOS-Things-master/components/mbedtls/platform/yoc/ |
A D | rsa_alt.c | 255 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int mode, in mbedtls_rsa_pkcs1_encrypt() 262 (void)f_rng; in mbedtls_rsa_pkcs1_encrypt() 319 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int mode, in mbedtls_rsa_pkcs1_decrypt() 327 (void)f_rng; in mbedtls_rsa_pkcs1_decrypt() 381 int mbedtls_rsa_pkcs1_sign(mbedtls_rsa_context *ctx, int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_rsa_pkcs1_sign() 391 (void)f_rng; in mbedtls_rsa_pkcs1_sign() 472 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int mode, in mbedtls_rsa_pkcs1_verify() 481 (void)f_rng; in mbedtls_rsa_pkcs1_verify()
|