Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/telnet/libtelnet/
H A Dpk.c124 MINT *modulus = mp_xtom(HEXMODULUS); in common_key() local
129 mp_pow(public, secret, modulus, common); in common_key()
136 mp_mfree(modulus); in common_key()
169 MINT *modulus = mp_xtom(HEXMODULUS); in genkeys() local
183 mp_mdiv(sk, modulus, tmp, sk); in genkeys()
185 mp_pow(root, sk, modulus, pk); in genkeys()
194 mp_mfree(modulus); in genkeys()
/freebsd-12.1/contrib/unbound/sldns/
H A Dkeyraw.c272 BIGNUM *modulus; in sldns_key_buf2rsa_raw() local
299 modulus = BN_new(); in sldns_key_buf2rsa_raw()
300 if(!modulus) { in sldns_key_buf2rsa_raw()
305 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus); in sldns_key_buf2rsa_raw()
310 BN_free(modulus); in sldns_key_buf2rsa_raw()
315 rsa->n = modulus; in sldns_key_buf2rsa_raw()
320 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in sldns_key_buf2rsa_raw()
322 BN_free(modulus); in sldns_key_buf2rsa_raw()
/freebsd-12.1/crypto/openssh/regress/
H A Dssh2putty.sh27 modulus=`
28 openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= |
33 echo "rsa2@$PORT:$HOST $public_exponent,$modulus"
/freebsd-12.1/usr.bin/newkey/
H A Dgeneric.c87 MINT *modulus = mp_xtom(HEXMODULUS); in genkeys() local
101 mp_mdiv(sk, modulus, tmp, sk); in genkeys()
103 mp_pow(root, sk, modulus, pk); in genkeys()
112 mp_mfree(modulus); in genkeys()
/freebsd-12.1/contrib/llvm/tools/lld/include/lld/Core/
H A DDefinedAtom.h205 Alignment(int v, int m = 0) : value(v), modulus(m) {} in value()
208 uint16_t modulus; member
211 return (value == rhs.value) && (modulus == rhs.modulus);
/freebsd-12.1/crypto/openssl/doc/man3/
H A DRSA_size.pod5 RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits
19 RSA_size() returns the RSA modulus size in bytes. It can be used to
32 RSA_size() returns the size of modulus in bytes.
H A DBN_mod_mul_montgomery.pod33 using the same modulus.
37 BN_MONT_CTX_set() sets up the I<mont> structure from the modulus I<m>
52 Note that I<a> must be non-negative and smaller than the modulus.
H A DRSA_generate_key.pod35 The modulus size will be of length B<bits>, the number of primes to form the
36 modulus will be B<primes>, and the public exponent will be B<e>. Key sizes
41 B<primes> depends on modulus bit length:
H A DBN_add.pod81 remainder respective to modulus I<m> (C<r=(a*b) mod m>). I<r> may be
83 repeated computations using the same modulus, see
H A DX509_check_private_key.pod37 and modulus of an RSA key) and/or key parameters (e.g. EC params of an EC key)
H A DBN_security_bits.pod23 to be the key size (modulus).
/freebsd-12.1/crypto/openssh/
H A Ddh.c298 dh_new_group_asc(const char *gen, const char *modulus) in dh_new_group_asc() argument
305 if (BN_hex2bn(&dh_p, modulus) == 0 || in dh_new_group_asc()
323 dh_new_group(BIGNUM *gen, BIGNUM *modulus) in dh_new_group() argument
329 if (!DH_set0_pqg(dh, modulus, NULL, gen)) { in dh_new_group()
/freebsd-12.1/crypto/openssl/apps/
H A Ddsa.c73 int i, modulus = 0, pubin = 0, pubout = 0, ret = 1;
129 modulus = 1;
189 if (modulus) {
H A Drsa.c77 int noout = 0, modulus = 0, pubin = 0, pubout = 0, ret = 1;
144 modulus = 1;
212 if (modulus) {
/freebsd-12.1/contrib/wpa/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()
/freebsd-12.1/contrib/ldns/
H A Ddnssec.c420 BIGNUM *modulus; in ldns_key_buf2rsa_raw() local
450 modulus = BN_new(); in ldns_key_buf2rsa_raw()
451 if(!modulus) { in ldns_key_buf2rsa_raw()
456 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus); in ldns_key_buf2rsa_raw()
461 BN_free(modulus); in ldns_key_buf2rsa_raw()
466 rsa->n = modulus; in ldns_key_buf2rsa_raw()
470 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in ldns_key_buf2rsa_raw()
472 BN_free(modulus); in ldns_key_buf2rsa_raw()
/freebsd-12.1/crypto/openssl/doc/man1/
H A Drsa.pod32 [B<-modulus>]
111 =item B<-modulus>
113 This option prints out the value of the modulus of the key.
/freebsd-12.1/contrib/ntp/util/
H A Dinvoke-ntp-keygen.texi619 @item @code{-b} @code{--imbits}= @kbd{modulus}
621 @kbd{modulus}
724 @item @code{-m} @code{--modulus}= @kbd{bits}
1026 * ntp-keygen modulus:: modulus option (-m)
1062 -b Num imbits identity modulus bits
1077 -m Num modulus prime modulus
1114 This is the ``identity modulus bits'' option.
1263 @node ntp-keygen modulus
1264 @subsection modulus option (-m)
1265 @cindex ntp-keygen-modulus
[all …]
H A Dntp-keygen.c180 u_int modulus = PLEN; /* prime modulus size (bits) */ variable
420 modulus = OPT_VALUE_MODULUS; in main()
998 fprintf(stderr, "Generating RSA keys (%d bits)...\n", modulus); in gen_rsa()
999 rsa = genRsaKeyPair(modulus, _UC("RSA")); in gen_rsa()
1055 "Generating DSA parameters (%d bits)...\n", modulus); in gen_dsa()
1056 dsa = genDsaParams(modulus, _UC("DSA")); in gen_dsa()
1067 fprintf(stderr, "Generating DSA keys (%d bits)...\n", modulus); in gen_dsa()
H A Dntp-keygen-opts.def23 descrip = "identity modulus bits";
25 The number of bits in the identity modulus. The default is 256.
143 name = modulus;
145 arg-name = modulus;
148 descrip = "prime modulus";
150 The number of bits in the prime modulus. The default is 512.
885 .It Fl b Fl -imbits Ns = Ar modulus
887 .Ar modulus
889 The number of bits in the identity modulus defaults to 256, but can be set to
990 .It Fl m Fl -modulus Ns = Ar bits
[all …]
/freebsd-12.1/contrib/libstdc++/include/backward/
H A Dfunction.h72 using std::modulus;
/freebsd-12.1/contrib/llvm/tools/lld/lib/ReaderWriter/YAML/
H A DReaderWriterYAML.cpp465 if (value.modulus == 0) { in output()
468 out << llvm::format("%d mod %d", value.modulus, value.value); in output()
474 value.modulus = 0; in input()
479 unsigned int modulus; in input() local
480 if (modStr.getAsInteger(0, modulus)) { in input()
483 value.modulus = modulus; in input()
492 if (value.modulus >= power) { in input()
/freebsd-12.1/contrib/unbound/validator/
H A Dval_secalgo.c1056 SECItem modulus = {siBuffer, NULL, 0}; in nss_buf2rsa() local
1079 modulus.data = key+offset; in nss_buf2rsa()
1080 modulus.len = (len - offset); in nss_buf2rsa()
1085 if(SECITEM_CopyItem(pk->arena, &pk->u.rsa.modulus, &modulus)) { in nss_buf2rsa()
/freebsd-12.1/contrib/libstdc++/include/ext/
H A Dbitmap_allocator.h736 modulus = _BSize % _AlignSize,
737 value = _BSize + (modulus ? _AlignSize - (modulus) : 0)

1234