Home
last modified time | relevance | path

Searched refs:coeffs (Results 1 – 11 of 11) sorted by relevance

/openssl/test/
H A Drsa_mp_test.c152 BIGNUM **pris = NULL, **exps = NULL, **coeffs = NULL; in key2048p3_v1() local
170 coeffs = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1()
187 OPENSSL_free(coeffs); in key2048p3_v1()
194 if (coeffs != NULL) in key2048p3_v1()
195 BN_free(coeffs[0]); in key2048p3_v1()
208 || !TEST_ptr(coeffs = sk_BIGNUM_new_null())) in key2048p3_v2()
228 || !TEST_int_ne(sk_BIGNUM_push(coeffs, num), 0) in key2048p3_v2()
230 || !TEST_int_ne(sk_BIGNUM_push(coeffs, num), 0)) in key2048p3_v2()
239 sk_BIGNUM_free(coeffs); in key2048p3_v2()
244 sk_BIGNUM_pop_free(coeffs, BN_free); in key2048p3_v2()
[all …]
/openssl/crypto/rsa/
H A Drsa_lib.c515 pinfo->t = coeffs[i]; in RSA_set0_multi_prime_params()
627 if (exps != NULL || coeffs != NULL) { in RSA_get0_multi_prime_crt_params()
636 if (coeffs != NULL) in RSA_get0_multi_prime_crt_params()
637 coeffs[i] = pinfo->t; in RSA_get0_multi_prime_crt_params()
758 STACK_OF(BIGNUM) *coeffs) in DEFINE_STACK_OF()
790 && pnum == sk_BIGNUM_num(coeffs) + 1) { in DEFINE_STACK_OF()
800 sk_BIGNUM_delete(coeffs, 0); in DEFINE_STACK_OF()
818 BIGNUM *coeff = sk_BIGNUM_pop(coeffs); in DEFINE_STACK_OF()
894 sk_BIGNUM_const_push(coeffs, RSA_get0_iqmp(r)); in DEFINE_SPECIAL_STACK_OF_CONST()
902 sk_BIGNUM_const_push(coeffs, pinfo->t); in DEFINE_SPECIAL_STACK_OF_CONST()
[all …]
H A Drsa_backend.c70 STACK_OF(BIGNUM) *factors = NULL, *exps = NULL, *coeffs = NULL; in ossl_rsa_fromdata()
134 && sk_BIGNUM_num(coeffs) == 0) { in ossl_rsa_fromdata()
190 coeffs)) { in ossl_rsa_fromdata()
223 || sk_BIGNUM_num(coeffs) != 0) { in ossl_rsa_fromdata()
227 sk_BIGNUM_num(coeffs)); in ossl_rsa_fromdata()
242 sk_BIGNUM_free(coeffs); in ossl_rsa_fromdata()
252 sk_BIGNUM_pop_free(coeffs, BN_clear_free); in ossl_rsa_fromdata()
266 STACK_OF(BIGNUM_const) *coeffs = sk_BIGNUM_const_new_null(); in DEFINE_SPECIAL_STACK_OF_CONST()
272 ossl_rsa_get0_all_params(rsa, factors, exps, coeffs); in DEFINE_SPECIAL_STACK_OF_CONST()
290 coeffs)) in DEFINE_SPECIAL_STACK_OF_CONST()
[all …]
H A Drsa_gen.c86 STACK_OF(BIGNUM) *coeffs) in DEFINE_STACK_OF()
228 if (!sk_BIGNUM_insert(coeffs, iqmp, sk_BIGNUM_num(coeffs))) in DEFINE_STACK_OF()
242 if (!sk_BIGNUM_insert(coeffs, newcoeff, sk_BIGNUM_num(coeffs))) in DEFINE_STACK_OF()
268 STACK_OF(BIGNUM) *coeffs = NULL; in rsa_multiprime_keygen()
301 coeffs = sk_BIGNUM_new_null(); in rsa_multiprime_keygen()
302 if (coeffs == NULL) in rsa_multiprime_keygen()
557 factors, exps, coeffs)) in rsa_multiprime_keygen()
572 rsa->iqmp = sk_BIGNUM_delete(coeffs, 0); in rsa_multiprime_keygen()
583 tmp = sk_BIGNUM_delete(coeffs, 0); in rsa_multiprime_keygen()
593 sk_BIGNUM_free(coeffs); in rsa_multiprime_keygen()
H A Drsa_local.h156 STACK_OF(BIGNUM) *coeffs);
/openssl/doc/internal/man3/
H A Dossl_rsa_get0_all_params.pod14 STACK_OF(BIGNUM_const) *coeffs);
17 const STACK_OF(BIGNUM) *coeffs);
23 I<exps> and I<coeffs>. The B<RSA> object takes ownership of the BIGNUMs,
28 I<primes>, I<exps> and I<coeffs>. The B<RSA> object retains ownership of the
49 the I<coeffs> stack contains I<qInv>, and then the rest of the coefficients
/openssl/providers/implementations/encode_decode/
H A Dencode_key2text.c640 STACK_OF(BIGNUM_const) *coeffs = NULL; in rsa_to_text()
652 coeffs = sk_BIGNUM_const_new_null(); in rsa_to_text()
654 if (factors == NULL || exps == NULL || coeffs == NULL) { in rsa_to_text()
670 ossl_rsa_get0_all_params((RSA *)rsa, factors, exps, coeffs); in rsa_to_text()
705 sk_BIGNUM_const_value(coeffs, 0))) in rsa_to_text()
721 sk_BIGNUM_const_value(coeffs, i - 1))) in rsa_to_text()
779 sk_BIGNUM_const_free(coeffs); in rsa_to_text()
/openssl/include/crypto/
H A Drsa.h67 STACK_OF(BIGNUM) *coeffs);
70 STACK_OF(BIGNUM_const) *coeffs);
/openssl/include/openssl/
H A Drsa.h226 BIGNUM *coeffs[],
242 const BIGNUM *coeffs[]);
/openssl/doc/man3/
H A DRSA_get0_key.pod48 const BIGNUM *coeffs[]);
50 BIGNUM *coeffs[], int pnum);
/openssl/crypto/evp/
H A Dctrl_params_translate.c1933 const BIGNUM *exps[10], *coeffs[10]; in get_rsa_payload_exponent() local
1936 && RSA_get0_multi_prime_crt_params(r, exps, coeffs)) in get_rsa_payload_exponent()
1960 const BIGNUM *exps[10], *coeffs[10]; in get_rsa_payload_coefficient() local
1963 && RSA_get0_multi_prime_crt_params(r, exps, coeffs)) in get_rsa_payload_coefficient()
1964 bn = coeffs[coefficientnum - 1]; in get_rsa_payload_coefficient()

Completed in 40 milliseconds