| /freebsd-12-stable/contrib/telnet/libtelnet/ |
| D | pk.c | 124 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-stable/usr.bin/newkey/ |
| D | generic.c | 87 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-stable/crypto/openssh/regress/ |
| D | ssh2putty.sh | 29 modulus=` 30 $OPENSSL_BIN rsa -noout -modulus -in $KEYFILE | grep ^Modulus= | 35 echo "rsa2@$PORT:$HOST $public_exponent,$modulus"
|
| /freebsd-12-stable/contrib/llvm-project/lld/include/lld/Core/ |
| D | DefinedAtom.h | 204 Alignment(int v, int m = 0) : value(v), modulus(m) {} in value() 207 uint16_t modulus; member 210 return (value == rhs.value) && (modulus == rhs.modulus);
|
| /freebsd-12-stable/crypto/openssl/doc/man3/ |
| D | RSA_size.pod | 5 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.
|
| D | BN_mod_mul_montgomery.pod | 33 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 nonnegative and smaller than the modulus.
|
| D | RSA_generate_key.pod | 35 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:
|
| D | BN_add.pod | 83 remainder respective to modulus I<m> (C<r=(a*b) mod m>). I<r> may be 85 repeated computations using the same modulus, see 93 C<in^2 = a (mod p)>. The modulus I<p> must be a
|
| /freebsd-12-stable/crypto/openssh/ |
| D | dh.c | 313 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()
|
| /freebsd-12-stable/contrib/unbound/sldns/ |
| D | keyraw.c | 421 BIGNUM* modulus = NULL; in sldns_key_buf2rsa_raw() local 424 if(!sldns_key_rsa_buf_bignum(key, len, &modulus, &exponent)) in sldns_key_buf2rsa_raw() 429 BN_free(modulus); in sldns_key_buf2rsa_raw() 435 rsa->n = modulus; in sldns_key_buf2rsa_raw() 440 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in sldns_key_buf2rsa_raw() 442 BN_free(modulus); in sldns_key_buf2rsa_raw()
|
| /freebsd-12-stable/crypto/openssl/apps/ |
| D | dsa.c | 69 int i, modulus = 0, pubin = 0, pubout = 0, ret = 1; in dsa_main() local 125 modulus = 1; in dsa_main() 185 if (modulus) { in dsa_main()
|
| D | rsa.c | 73 int noout = 0, modulus = 0, pubin = 0, pubout = 0, ret = 1; in rsa_main() local 140 modulus = 1; in rsa_main() 208 if (modulus) { in rsa_main()
|
| /freebsd-12-stable/contrib/wpa/src/crypto/ |
| D | crypto_internal-modexp.c | 91 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()
|
| D | crypto_wolfssl.c | 1306 mp_int *a, mp_int *modulus, mp_digit mp); 1543 mp_int *modulus = &e->prime; in crypto_ec_point_add() local 1553 ret = mp_montgomery_calc_normalization(&mu, modulus); in crypto_ec_point_add() 1572 if (mp_mulmod(pa->x, &mu, modulus, ta->x) != MP_OKAY || in crypto_ec_point_add() 1573 mp_mulmod(pa->y, &mu, modulus, ta->y) != MP_OKAY || in crypto_ec_point_add() 1574 mp_mulmod(pa->z, &mu, modulus, ta->z) != MP_OKAY || in crypto_ec_point_add() 1575 mp_mulmod(pb->x, &mu, modulus, tb->x) != MP_OKAY || in crypto_ec_point_add() 1576 mp_mulmod(pb->y, &mu, modulus, tb->y) != MP_OKAY || in crypto_ec_point_add() 1577 mp_mulmod(pb->z, &mu, modulus, tb->z) != MP_OKAY) { in crypto_ec_point_add()
|
| /freebsd-12-stable/contrib/bc/tests/dc/ |
| D | all.txt | 9 modulus
|
| /freebsd-12-stable/contrib/bc/tests/bc/ |
| D | all.txt | 13 modulus
|
| /freebsd-12-stable/contrib/ldns/ |
| D | dnssec.c | 420 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-stable/contrib/bc/vs/tests/ |
| D | tests_dc.bat | 24 modulus
|
| D | tests_bc.bat | 40 modulus
|
| /freebsd-12-stable/crypto/openssl/doc/man1/ |
| D | rsa.pod | 32 [B<-modulus>] 111 =item B<-modulus> 113 This option prints out the value of the modulus of the key.
|
| /freebsd-12-stable/contrib/ntp/util/ |
| D | invoke-ntp-keygen.texi | 619 @item @code{-b} @code{--imbits}= @kbd{modulus} 620 Set the number of bits in the identity modulus for generating identity keys to 621 @kbd{modulus} 623 The number of bits in the identity modulus defaults to 256, but can be set to 724 @item @code{-m} @code{--modulus}= @kbd{bits} 725 Set the number of bits in the prime modulus for generating files to 727 The modulus defaults to 512, but can be set from 256 to 2048 (32 to 256 octets). 1026 * ntp-keygen modulus:: modulus option (-m) 1062 -b Num imbits identity modulus bits 1077 -m Num modulus prime modulus [all …]
|
| D | ntp-keygen.c | 180 u_int modulus = PLEN; /* prime modulus size (bits) */ variable 424 modulus = OPT_VALUE_MODULUS; in main() 1002 fprintf(stderr, "Generating RSA keys (%d bits)...\n", modulus); in gen_rsa() 1003 rsa = genRsaKeyPair(modulus, _UC("RSA")); in gen_rsa() 1059 "Generating DSA parameters (%d bits)...\n", modulus); in gen_dsa() 1060 dsa = genDsaParams(modulus, _UC("DSA")); in gen_dsa() 1071 fprintf(stderr, "Generating DSA keys (%d bits)...\n", modulus); in gen_dsa()
|
| D | ntp-keygen-opts.def | 23 descrip = "identity modulus bits"; 25 The number of bits in the identity modulus. The default is 512. 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 886 Set the number of bits in the identity modulus for generating identity keys to 887 .Ar modulus 889 The number of bits in the identity modulus defaults to 256, but can be set to [all …]
|
| /freebsd-12-stable/contrib/libstdc++/include/backward/ |
| D | function.h | 72 using std::modulus;
|
| /freebsd-12-stable/contrib/llvm-project/lld/lib/ReaderWriter/YAML/ |
| D | ReaderWriterYAML.cpp | 464 if (value.modulus == 0) { in output() 467 out << llvm::format("%d mod %d", value.modulus, value.value); in output() 473 value.modulus = 0; in input() 478 unsigned int modulus; in input() local 479 if (modStr.getAsInteger(0, modulus)) { in input() 482 value.modulus = modulus; in input() 491 if (value.modulus >= power) { in input()
|