Home
last modified time | relevance | path

Searched refs:modulus (Results 1 – 25 of 39) sorted by relevance

12

/dflybsd-src/lib/libtelnet/
H A Dpk.c128 BIGNUM *public, *secret, *common, *modulus; in common_key() local
133 modulus = NULL; in common_key()
134 if (BN_hex2bn(&modulus, HEXMODULUS) == 0) in common_key()
146 BN_mod_exp(common, public, secret, modulus, ctx); in common_key()
153 BN_free(modulus); in common_key()
201 BIGNUM *pk, *sk, *tmp, *base, *root, *modulus; in genkeys() local
208 modulus = NULL; in genkeys()
209 if (BN_hex2bn(&modulus, HEXMODULUS) == 0) in genkeys()
226 BN_div(tmp, sk, sk, modulus, ctx); in genkeys()
227 BN_mod_exp(pk, root, sk, modulus, ctx); in genkeys()
[all …]
/dflybsd-src/usr.bin/newkey/
H A Dgeneric.c100 BIGNUM *pk, *sk, *tmp, *base, *root, *modulus; in genkeys() local
107 modulus = NULL; in genkeys()
108 if (BN_hex2bn(&modulus, HEXMODULUS) == 0) in genkeys()
125 BN_div(tmp, sk, sk, modulus, ctx); in genkeys()
126 BN_mod_exp(pk, root, sk, modulus, ctx); in genkeys()
141 BN_free(modulus); in genkeys()
/dflybsd-src/usr.sbin/keyserv/
H A Dsetkey.c59 static BIGNUM *modulus; variable
84 modulus = NULL; in setmodulus()
85 if (BN_hex2bn(&modulus, modx) == 0) in setmodulus()
203 BN_mod_exp(common, public, secret, modulus, ctx); in pk_crypt()
264 BN_mod_exp(common, public, secret, modulus, ctx); in pk_get_conv_key()
/dflybsd-src/crypto/openssh/
H A Ddh.c313 dh_new_group_asc(const char *gen, const char *modulus) in dh_new_group_asc() argument
320 if (BN_hex2bn(&dh_p, modulus) == 0 || in dh_new_group_asc()
338 dh_new_group(BIGNUM *gen, BIGNUM *modulus) in dh_new_group() argument
344 if (!DH_set0_pqg(dh, modulus, NULL, gen)) { in dh_new_group()
H A DPROTOCOL.certkeys155 e and n are the RSA exponent and public modulus respectively.
/dflybsd-src/crypto/libressl/apps/openssl/
H A Ddsa.c80 int modulus; member
128 .opt.flag = &dsa_config.modulus,
316 if (dsa_config.modulus) { in dsa_main()
H A Drsa.c82 int modulus; member
136 .opt.flag = &rsa_config.modulus,
329 if (rsa_config.modulus) { in rsa_main()
H A Dreq.c146 int modulus; member
363 .opt.flag = &req_config.modulus,
1003 …if (req_config.noout && !req_config.text && !req_config.modulus && !req_config.subject && !req_con… in req_main()
1042 if (req_config.modulus) { in req_main()
H A Dx509.c126 int modulus; member
525 .opt.order = &x509_config.modulus,
1043 } else if (x509_config.modulus == i) { in x509_main()
/dflybsd-src/contrib/wpa_supplicant/src/crypto/
H A Dcrypto_internal-modexp.c91 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
108 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
H A Dcrypto_wolfssl.c1255 mp_int *a, mp_int *modulus, mp_digit mp);
1480 mp_int *modulus = &e->prime; in crypto_ec_point_add() local
1490 ret = mp_montgomery_calc_normalization(&mu, modulus); in crypto_ec_point_add()
1509 if (mp_mulmod(pa->x, &mu, modulus, ta->x) != MP_OKAY || in crypto_ec_point_add()
1510 mp_mulmod(pa->y, &mu, modulus, ta->y) != MP_OKAY || in crypto_ec_point_add()
1511 mp_mulmod(pa->z, &mu, modulus, ta->z) != MP_OKAY || in crypto_ec_point_add()
1512 mp_mulmod(pb->x, &mu, modulus, tb->x) != MP_OKAY || in crypto_ec_point_add()
1513 mp_mulmod(pb->y, &mu, modulus, tb->y) != MP_OKAY || in crypto_ec_point_add()
1514 mp_mulmod(pb->z, &mu, modulus, tb->z) != MP_OKAY) { in crypto_ec_point_add()
H A Dcrypto_nettle.c377 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
387 mpz_import(bn_modulus, modulus_len, 1, 1, 1, 0, modulus); in crypto_mod_exp()
H A Dcrypto_gnutls.c363 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
374 gcry_mpi_scan(&bn_modulus, GCRYMPI_FMT_USG, modulus, modulus_len, in crypto_mod_exp()
H A Dcrypto_libtomcrypt.c740 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
750 mp_read_unsigned_bin(m, (u8 *) modulus, modulus_len) != CRYPT_OK) in crypto_mod_exp()
H A Dcrypto.h468 const u8 *modulus, size_t modulus_len,
H A Dcrypto_openssl.c591 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
604 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
/dflybsd-src/contrib/ldns/
H A Ddnssec.c427 BIGNUM *modulus; in ldns_key_buf2rsa_raw() local
457 modulus = BN_new(); in ldns_key_buf2rsa_raw()
458 if(!modulus) { in ldns_key_buf2rsa_raw()
463 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus); in ldns_key_buf2rsa_raw()
468 BN_free(modulus); in ldns_key_buf2rsa_raw()
473 rsa->n = modulus; in ldns_key_buf2rsa_raw()
477 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in ldns_key_buf2rsa_raw()
479 BN_free(modulus); in ldns_key_buf2rsa_raw()
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/ext/
H A Dbitmap_allocator.h712 modulus = _BSize % _AlignSize, in _GLIBCXX_VISIBILITY()
713 value = _BSize + (modulus ? _AlignSize - (modulus) : 0) in _GLIBCXX_VISIBILITY()
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/ext/
H A Dbitmap_allocator.h714 modulus = _BSize % _AlignSize, in _GLIBCXX_VISIBILITY()
715 value = _BSize + (modulus ? _AlignSize - (modulus) : 0) in _GLIBCXX_VISIBILITY()
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/tr1/
H A Drandom.tcc107 linear_congruential<_UIntType, __a, __c, __m>::modulus; member in std::tr1::linear_congruential<_UIntType, __a, __c, __m>
410 subtract_with_carry<_IntType, __m, __s, __r>::modulus; member in std::tr1::subtract_with_carry<_IntType, __m, __s, __r>
432 _M_x[__i] = __detail::__mod<_UIntType, 1, 0, modulus>(__lcg()); in seed()
456 _M_x[__i] = __detail::__mod<_UIntType, 1, 0, modulus>(__tmp); in seed()
483 __xi = modulus - _M_x[_M_p] - _M_carry + _M_x[__ps]; in operator ()()
H A Drandom.h366 static const _UIntType modulus = __m; in _GLIBCXX_VISIBILITY()
730 static const _IntType modulus = __m; in _GLIBCXX_VISIBILITY()
796 { return this->modulus - 1; } in _GLIBCXX_VISIBILITY()
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/tr1/
H A Drandom.tcc110 linear_congruential<_UIntType, __a, __c, __m>::modulus; member in std::tr1::linear_congruential<_UIntType, __a, __c, __m>
413 subtract_with_carry<_IntType, __m, __s, __r>::modulus; member in std::tr1::subtract_with_carry<_IntType, __m, __s, __r>
435 _M_x[__i] = __detail::__mod<_UIntType, 1, 0, modulus>(__lcg()); in seed()
459 _M_x[__i] = __detail::__mod<_UIntType, 1, 0, modulus>(__tmp); in seed()
486 __xi = modulus - _M_x[_M_p] - _M_carry + _M_x[__ps]; in operator ()()
H A Drandom.h370 static const _UIntType modulus = __m; in _GLIBCXX_VISIBILITY()
734 static const _IntType modulus = __m; in _GLIBCXX_VISIBILITY()
800 { return this->modulus - 1; } in _GLIBCXX_VISIBILITY()
/dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/bits/
H A Dstl_function.h159 struct modulus; in _GLIBCXX_VISIBILITY()
207 struct modulus : public binary_function<_Tp, _Tp, _Tp> in _GLIBCXX_VISIBILITY() struct
290 struct modulus<void> in _GLIBCXX_VISIBILITY()
/dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/bits/
H A Dstl_function.h178 struct modulus : public binary_function<_Tp, _Tp, _Tp> in _GLIBCXX_VISIBILITY() struct

12