/freebsd/contrib/netbsd-tests/lib/libm/ |
H A D | t_scalbn.c | 42 static const int exps[] = { 0, 1, -1, 100, -100 }; variable 123 for (i = 0; i < __arraycount(exps); i++) { in ATF_TC_BODY() 124 y = scalbn(x, exps[i]); in ATF_TC_BODY() 140 for (i = 0; i < __arraycount(exps); i++) in ATF_TC_BODY() 141 ATF_CHECK(scalbn(x, exps[i]) == x); in ATF_TC_BODY() 155 for (i = 0; i < __arraycount(exps); i++) in ATF_TC_BODY() 156 ATF_CHECK(scalbn(x, exps[i]) == x); in ATF_TC_BODY() 172 for (i = 0; i < __arraycount(exps); i++) { in ATF_TC_BODY() 173 y = scalbn(x, exps[i]); in ATF_TC_BODY() 174 ATF_CHECK_MSG(y == ldexp(x, exps[i]), "test %zu: exponent=%d, " in ATF_TC_BODY() [all …]
|
H A D | t_ldexp.c | 47 static const int exps[] = { 0, 1, -1, 100, -100 }; variable 227 for (i = 0; i < __arraycount(exps); i++) { in ATF_TC_BODY() 228 y = ldexp(x, exps[i]); in ATF_TC_BODY() 244 for (i = 0; i < __arraycount(exps); i++) in ATF_TC_BODY() 245 ATF_CHECK(ldexp(x, exps[i]) == x); in ATF_TC_BODY() 259 for (i = 0; i < __arraycount(exps); i++) in ATF_TC_BODY() 260 ATF_CHECK(ldexp(x, exps[i]) == x); in ATF_TC_BODY() 277 for (i = 0; i < __arraycount(exps); i++) { in ATF_TC_BODY() 278 y = ldexp(x, exps[i]); in ATF_TC_BODY() 298 for (i = 0; i < __arraycount(exps); i++) { in ATF_TC_BODY() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | rsa_mp_test.c | 152 BIGNUM **pris = NULL, **exps = NULL, **coeffs = NULL; in key2048p3_v1() local 169 exps = OPENSSL_zalloc(sizeof(BIGNUM *)); in key2048p3_v1() 171 if (!TEST_ptr(pris) || !TEST_ptr(exps) || !TEST_ptr(coeffs)) in key2048p3_v1() 175 exps[0] = BN_bin2bn(ex_exponent, sizeof(ex_exponent) - 1, NULL); in key2048p3_v1() 177 if (!TEST_ptr(pris[0]) || !TEST_ptr(exps[0]) || !TEST_ptr(coeffs[0])) in key2048p3_v1() 180 if (!TEST_true(RSA_set0_multi_prime_params(key, pris, exps, in key2048p3_v1() 186 OPENSSL_free(exps); in key2048p3_v1() 192 if (exps != NULL) in key2048p3_v1() 193 BN_free(exps[0]); in key2048p3_v1() 202 STACK_OF(BIGNUM) *primes = NULL, *exps = NULL, *coeffs = NULL; in key2048p3_v2() [all …]
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_lib.c | 479 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[], in RSA_set0_multi_prime_params() argument 486 if (primes == NULL || exps == NULL || coeffs == NULL || pnum == 0) in RSA_set0_multi_prime_params() 500 if (primes[i] != NULL && exps[i] != NULL && coeffs[i] != NULL) { in RSA_set0_multi_prime_params() 505 pinfo->d = exps[i]; in RSA_set0_multi_prime_params() 609 int RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[], in RSA_get0_multi_prime_crt_params() argument 618 if (exps != NULL || coeffs != NULL) { in RSA_get0_multi_prime_crt_params() 625 if (exps != NULL) in RSA_get0_multi_prime_crt_params() 626 exps[i] = pinfo->d; in RSA_get0_multi_prime_crt_params() 744 const STACK_OF(BIGNUM) *exps, in DEFINE_STACK_OF() 752 if (primes == NULL || exps == NULL || coeffs == NULL) in DEFINE_STACK_OF() [all …]
|
H A D | rsa_backend.c | 68 STACK_OF(BIGNUM) *factors = NULL, *exps = NULL, *coeffs = NULL; in ossl_rsa_fromdata() 93 || !collect_numbers(exps = sk_BIGNUM_new_null(), params, in ossl_rsa_fromdata() 101 && !ossl_rsa_set0_all_params(rsa, factors, exps, coeffs)) in ossl_rsa_fromdata() 107 sk_BIGNUM_free(exps); in ossl_rsa_fromdata() 116 sk_BIGNUM_pop_free(exps, BN_free); in ossl_rsa_fromdata() 129 STACK_OF(BIGNUM_const) *exps = sk_BIGNUM_const_new_null(); in DEFINE_SPECIAL_STACK_OF_CONST() 132 if (rsa == NULL || factors == NULL || exps == NULL || coeffs == NULL) in DEFINE_SPECIAL_STACK_OF_CONST() 136 ossl_rsa_get0_all_params(rsa, factors, exps, coeffs); in DEFINE_SPECIAL_STACK_OF_CONST() 151 ossl_rsa_mp_exp_names, exps) in DEFINE_SPECIAL_STACK_OF_CONST() 166 sk_BIGNUM_const_free(exps); in DEFINE_SPECIAL_STACK_OF_CONST()
|
/freebsd/crypto/openssl/doc/internal/man3/ |
H A D | ossl_rsa_get0_all_params.pod | 13 STACK_OF(BIGNUM_const) *exps, 16 const STACK_OF(BIGNUM) *exps, 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 44 the I<exps> stack contains I<dP>, I<dQ>, and then the rest of the exponents
|
/freebsd/crypto/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2text.c | 637 STACK_OF(BIGNUM_const) *exps = NULL; in rsa_to_text() 649 exps = sk_BIGNUM_const_new_null(); in rsa_to_text() 652 if (factors == NULL || exps == NULL || coeffs == NULL) { in rsa_to_text() 668 ossl_rsa_get0_all_params((RSA *)rsa, factors, exps, coeffs); in rsa_to_text() 697 sk_BIGNUM_const_value(exps, 0))) in rsa_to_text() 700 sk_BIGNUM_const_value(exps, 1))) in rsa_to_text() 714 sk_BIGNUM_const_value(exps, i))) in rsa_to_text() 776 sk_BIGNUM_const_free(exps); in rsa_to_text()
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | rsa.h | 60 const STACK_OF(BIGNUM) *exps, 63 STACK_OF(BIGNUM_const) *exps,
|
/freebsd/contrib/arm-optimized-routines/math/ |
H A D | Dir.mk | 249 fenv-exps := $(ulp-input-dir)/fenv 250 $(fenv-exps): $(math-lib-fenvs) 262 $(ulp-lims) $(ulp-lims-nn) $(fenv-exps) $(arch-itvs) $(generic-itvs) $(ulp-cvals): | $$(@D) 266 check-math-ulp: $(fenv-exps) $(ulp-cvals) 273 DISABLE_FENV=../../$(fenv-exps) \
|
/freebsd/contrib/arm-optimized-routines/math/test/rtest/ |
H A D | dotest.c | 874 int exps[] = { in float32_case() local 897 for (eptr = 0; eptr < sizeof(exps)/sizeof(*exps); eptr++) { in float32_case() 898 se = (sign ? 0x80000000 : 0) | ((exps[eptr]+127) << 23); in float32_case() 1001 int exps[] = { in float64_case() local 1025 for (eptr = 0; eptr < sizeof(exps)/sizeof(*exps); eptr++) { in float64_case() 1026 se = (sign ? 0x80000000 : 0) | ((exps[eptr]+1023) << 20); in float64_case()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | rsa.h | 214 BIGNUM *exps[], 230 int RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[],
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | RSA_get0_key.pod | 47 int RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[], 49 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | ctrl_params_translate.c | 1877 const BIGNUM *exps[10], *coeffs[10]; in get_rsa_payload_exponent() local 1880 && RSA_get0_multi_prime_crt_params(r, exps, coeffs)) in get_rsa_payload_exponent() 1881 bn = exps[exponentnum - 2]; in get_rsa_payload_exponent() 1904 const BIGNUM *exps[10], *coeffs[10]; in get_rsa_payload_coefficient() local 1907 && RSA_get0_multi_prime_crt_params(r, exps, coeffs)) in get_rsa_payload_coefficient()
|