| /freebsd/contrib/telnet/libtelnet/ |
| H A D | pk.c | 120 MINT *modulus = mp_xtom(HEXMODULUS); in common_key() local 125 mp_pow(public, secret, modulus, common); in common_key() 132 mp_mfree(modulus); in common_key() 160 MINT *modulus = mp_xtom(HEXMODULUS); in genkeys() local 174 mp_mdiv(sk, modulus, tmp, sk); in genkeys() 176 mp_pow(root, sk, modulus, pk); in genkeys() 185 mp_mfree(modulus); in genkeys()
|
| /freebsd/crypto/openssh/regress/ |
| H A D | ssh2putty.sh | 28 modulus=` 29 $OPENSSL_BIN rsa -noout -modulus -in $KEYFILE | grep ^Modulus= | 34 echo "rsa2@$PORT:$HOST $public_exponent,$modulus"
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | RSA_size.pod | 5 RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits 31 RSA_size() returns the RSA modulus size in bytes. It can be used to 42 RSA_size() returns the size of modulus in bytes.
|
| H A D | EVP_PKEY_is_a.pod | 82 BIGNUM *modulus = NULL; 83 if (EVP_PKEY_get_bn_param(pkey, "n", &modulus)) 84 /* do whatever with the modulus */ 85 BN_free(modulus);
|
| H A D | RSA_generate_key.pod | 31 EVP_RSA_gen() generates a new RSA key pair with modulus size I<bits>. 46 The modulus size will be of length I<bits>, the number of primes to form the 47 modulus will be I<primes>, and the public exponent will be I<e>. Key sizes 52 I<primes> depends on modulus bit length:
|
| H A 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.
|
| H A 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 122 to use the same B<BIGNUM> object for the modulus as for the output.
|
| /freebsd/crypto/openssh/ |
| H A D | dh.c | 312 dh_new_group_asc(const char *gen, const char *modulus) in dh_new_group_asc() argument 319 if (BN_hex2bn(&dh_p, modulus) == 0 || in dh_new_group_asc() 337 dh_new_group(BIGNUM *gen, BIGNUM *modulus) in dh_new_group() argument 343 if (!DH_set0_pqg(dh, modulus, NULL, gen)) { in dh_new_group()
|
| /freebsd/contrib/unbound/sldns/ |
| H A D | keyraw.c | 432 BIGNUM* modulus = NULL; in sldns_key_buf2rsa_raw() local 435 if(!sldns_key_rsa_buf_bignum(key, len, &modulus, &exponent)) in sldns_key_buf2rsa_raw() 440 BN_free(modulus); in sldns_key_buf2rsa_raw() 446 rsa->n = modulus; in sldns_key_buf2rsa_raw() 451 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in sldns_key_buf2rsa_raw() 453 BN_free(modulus); in sldns_key_buf2rsa_raw()
|
| /freebsd/crypto/openssl/apps/ |
| H A D | dsa.c | 99 int modulus = 0, pubin = 0, pubout = 0, ret = 1; in dsa_main() local 158 modulus = 1; in dsa_main() 219 if (modulus) { in dsa_main()
|
| H A D | rsa.c | 148 int noout = 0, modulus = 0, pubin = 0, pubout = 0, ret = 1; in rsa_main() local 217 modulus = 1; in rsa_main() 292 if (modulus) { in rsa_main()
|
| /freebsd/contrib/wpa/src/crypto/ |
| H A 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()
|
| /freebsd/crypto/openssl/fuzz/ |
| H A D | ml-kem.c | 66 uint16_t modulus = 6; in select_keytype_and_size() local 85 modulus = 3; in select_keytype_and_size() 91 switch (keysize % modulus) { in select_keytype_and_size()
|
| H A D | ml-dsa.c | 86 uint16_t modulus = 6; in select_keytype_and_size() local 104 modulus = 3; in select_keytype_and_size() 110 switch (keysize % modulus) { in select_keytype_and_size()
|
| /freebsd/crypto/openssl/test/recipes/30-test_evp_pkey_provided/ |
| H A D | RSA.priv.txt | 2 modulus: 3161751493 (0xbc747fc5)
|
| /freebsd/contrib/bc/tests/dc/ |
| H A D | all.txt | 9 modulus
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__functional/ |
| H A D | operations.h | 64 struct _LIBCPP_TEMPLATE_VIS modulus : __binary_function<_Tp, _Tp, _Tp> { struct 68 _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(modulus); argument
|
| /freebsd/contrib/ldns/ |
| H A D | dnssec.c | 428 BIGNUM *modulus; in ldns_key_buf2rsa_raw() local 458 modulus = BN_new(); in ldns_key_buf2rsa_raw() 459 if(!modulus) { in ldns_key_buf2rsa_raw() 464 (void) BN_bin2bn(key+offset, (int)(len - offset), modulus); in ldns_key_buf2rsa_raw() 469 BN_free(modulus); in ldns_key_buf2rsa_raw() 474 rsa->n = modulus; in ldns_key_buf2rsa_raw() 478 if (!RSA_set0_key(rsa, modulus, exponent, NULL)) { in ldns_key_buf2rsa_raw() 480 BN_free(modulus); in ldns_key_buf2rsa_raw()
|
| /freebsd/sys/dev/qat/qat_api/include/lac/ |
| H A D | cpa_cy_ln.h | 83 CpaFlatBuffer modulus; member
|
| /freebsd/contrib/bc/vs/tests/ |
| H A D | tests_dc.bat | 24 modulus
|
| H A D | tests_bc.bat | 40 modulus
|
| /freebsd/crypto/openssl/doc/man1/ |
| H A D | openssl-rsa.pod.in | 36 [B<-modulus>] 114 =item B<-modulus> 116 This option prints out the value of the modulus of the key.
|
| /freebsd/contrib/ntp/util/ |
| H A 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 bit [all...] |
| H A D | ntp-keygen.c | 65 * These cryptographic routines are characterized by the prime modulus 123 #define PLEN 512 /* default prime modulus size (bits) */ 124 #define ILEN 512 /* default identity modulus size (bits) */ 180 u_int modulus = PLEN; /* prime modulus size (bits) */ variable 181 u_int modulus2 = ILEN; /* identity modulus size (bits) */ 424 modulus = OPT_VALUE_MODULUS; in main() 1017 fprintf(stderr, "Generating RSA keys (%d bits)...\n", modulus); in gen_rsa() 1018 rsa = genRsaKeyPair(modulus, _UC("RSA")); in gen_rsa() 1029 * modulus turn in gen_rsa() [all...] |
| /freebsd/contrib/bc/tests/bc/ |
| H A D | all.txt | 138 modulus
|