Home
last modified time | relevance | path

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

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DRSAKeyParameters.java10 private BigInteger modulus; field in RSAKeyParameters
15 BigInteger modulus, in RSAKeyParameters() argument
28 this.modulus = validate(modulus); in RSAKeyParameters()
32 private BigInteger validate(BigInteger modulus) in validate() argument
34 if ((modulus.intValue() & 1) == 0) in validate()
40 …if (!modulus.gcd(new BigInteger("14518877557776399015115874320830702024226143809848893135505709196… in validate()
51 return modulus; in validate()
56 return modulus; in getModulus()
DRSAPrivateCrtKeyParameters.java19 BigInteger modulus, in RSAPrivateCrtKeyParameters() argument
28 super(true, modulus, privateExponent); in RSAPrivateCrtKeyParameters()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLRSAPrivateKey.java44 BigInteger modulus; field in OpenSSLRSAPrivateKey
68 final BigInteger modulus = rsaKeySpec.getModulus(); in init() local
71 if (modulus == null) { in init()
79 modulus.toByteArray(), in init()
117 BigInteger modulus = null; in wrapJCAPrivateKeyForTLSStackOnly() local
119 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
121 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
123 if (modulus == null) { in wrapJCAPrivateKeyForTLSStackOnly()
128 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
140 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() local
[all …]
DOpenSSLRSAPublicKey.java42 private BigInteger modulus; field in OpenSSLRSAPublicKey
108 modulus = new BigInteger(params[0]); in ensureReadParams()
117 return modulus; in getModulus()
151 return modulus.equals(other.getModulus()) in equals()
159 return modulus.hashCode() ^ publicExponent.hashCode(); in hashCode()
168 sb.append(modulus.toString(16)); in toString()
181 modulus.toByteArray(), in readObject()
DOpenSSLRSAPrivateCrtKey.java61 BigInteger modulus = rsaKeySpec.getModulus(); in init() local
64 if (modulus == null) { in init()
85 modulus.toByteArray(), in init()
107 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() local
110 if (modulus == null) { in getInstance()
131 modulus.toByteArray(), in getInstance()
269 modulus.toByteArray(), in readObject()
/external/syslinux/gpxe/src/crypto/
Dx509.c108 struct asn1_cursor modulus; in x509_rsa_public_key() local
151 memcpy ( &modulus, &pubkey, sizeof ( modulus ) ); in x509_rsa_public_key()
152 rc = ( asn1_enter ( &modulus, ASN1_INTEGER ) /* modulus */ ); in x509_rsa_public_key()
168 rsa_pubkey->modulus = malloc ( modulus.len + exponent.len ); in x509_rsa_public_key()
169 if ( ! rsa_pubkey->modulus ) in x509_rsa_public_key()
171 rsa_pubkey->exponent = ( rsa_pubkey->modulus + modulus.len ); in x509_rsa_public_key()
172 memcpy ( rsa_pubkey->modulus, modulus.data, modulus.len ); in x509_rsa_public_key()
173 rsa_pubkey->modulus_len = modulus.len; in x509_rsa_public_key()
178 DBG2_HDA ( 0, rsa_pubkey->modulus, rsa_pubkey->modulus_len ); in x509_rsa_public_key()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DRSAPublicKeyStructure.java20 private BigInteger modulus; field in RSAPublicKeyStructure
47 BigInteger modulus, in RSAPublicKeyStructure() argument
50 this.modulus = modulus; in RSAPublicKeyStructure()
65 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue(); in RSAPublicKeyStructure()
71 return modulus; in getModulus()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java17 private BigInteger modulus; field in RSAPublicKey
44 BigInteger modulus, in RSAPublicKey() argument
47 this.modulus = modulus; in RSAPublicKey()
62 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue(); in RSAPublicKey()
68 return modulus; in getModulus()
DRSAPrivateKeyStructure.java21 private BigInteger modulus; field in RSAPrivateKeyStructure
54 BigInteger modulus, in RSAPrivateKeyStructure() argument
64 this.modulus = modulus; in RSAPrivateKeyStructure()
86 modulus = ((ASN1Integer)e.nextElement()).getValue(); in RSAPrivateKeyStructure()
108 return modulus; in getModulus()
DRSAPrivateKey.java18 private BigInteger modulus; field in RSAPrivateKey
52 BigInteger modulus, in RSAPrivateKey() argument
62 this.modulus = modulus; in RSAPrivateKey()
84 modulus = ((ASN1Integer)e.nextElement()).getValue(); in RSAPrivateKey()
106 return modulus; in getModulus()
/external/openssh/
Dmoduli.017 The file consists of newline-separated records, one per modulus,
20 timestamp The time that the modulus was last processed as
24 the prime modulus. Supported types are:
51 trials that have been performed on the modulus.
56 generator The recommended generator for use with this modulus
59 modulus The modulus itself in hexadecimal.
62 the size of the modulus required to produce enough Diffie-Hellman output
64 selects a modulus from /etc/moduli that best meets the size requirement.
Ddh.c289 dh_new_group_asc(const char *gen, const char *modulus) in dh_new_group_asc() argument
295 if (BN_hex2bn(&dh->p, modulus) == 0 || in dh_new_group_asc()
309 dh_new_group(BIGNUM *gen, BIGNUM *modulus) in dh_new_group() argument
315 dh->p = modulus; in dh_new_group()
/external/libcxx/test/std/utilities/function.objects/arithmetic.operations/
Dmodulus.pass.cpp22 typedef std::modulus<int> F; in main()
29 typedef std::modulus<> F2; in main()
35 constexpr int foo = std::modulus<int> () (3, 2); in main()
38 constexpr int bar = std::modulus<> () (3L, 2); in main()
Dtransparent.pass.cpp48 static_assert ( !is_transparent<std::modulus<int>>::value, "" ); in main()
49 static_assert ( !is_transparent<std::modulus<std::string>>::value, "" ); in main()
50 static_assert ( is_transparent<std::modulus<void>>::value, "" ); in main()
51 static_assert ( is_transparent<std::modulus<>>::value, "" ); in main()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPrivateKey.java28 protected BigInteger modulus; field in BCRSAPrivateKey
40 this.modulus = key.getModulus(); in BCRSAPrivateKey()
47 this.modulus = spec.getModulus(); in BCRSAPrivateKey()
54 this.modulus = key.getModulus(); in BCRSAPrivateKey()
60 this.modulus = key.getModulus(); in BCRSAPrivateKey()
66 return modulus; in getModulus()
DBCRSAPublicKey.java27 private BigInteger modulus; field in BCRSAPublicKey
35 this.modulus = key.getModulus(); in BCRSAPublicKey()
43 this.modulus = spec.getModulus(); in BCRSAPublicKey()
51 this.modulus = key.getModulus(); in BCRSAPublicKey()
68 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo()
84 return modulus; in getModulus()
/external/sl4a/Common/src/org/apache/commons/codec/binary/
DBase64Codec.java199 private int modulus; field in Base64Codec
462 switch (modulus) { in encode()
492 modulus = (++modulus) % 3; in encode()
498 if (0 == modulus) { in encode()
557 modulus = (++modulus) % 4; in decode()
559 if (modulus == 0) { in decode()
572 if (eof && modulus != 0) { in decode()
574 switch (modulus) { in decode()
1050 modulus = 0; in reset()
/external/vboot_reference/utility/
DdumpRSAPublicKey.c24 int modulus = BN_num_bits(key->n); in check() local
31 if (modulus != 1024 && modulus != 2048 && modulus != 4096 in check()
32 && modulus != 8192) { in check()
33 fprintf(stderr, "ERROR: Unknown modulus length = %d.\n", modulus); in check()
/external/openssh/regress/
Dssh2putty.sh27 modulus=`
28 openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= |
33 echo "rsa2@$PORT:$HOST $public_exponent,$modulus"
/external/ImageMagick/MagickCore/
Dfourier.c93 modulus; member
554 if (fourier_info->modulus != MagickFalse) in ForwardFourier()
811 if (fourier_info->modulus != MagickFalse) in ForwardFourierTransform()
832 const PixelChannel channel,const MagickBooleanType modulus, in ForwardFourierTransformChannel() argument
860 fourier_info.modulus=modulus; in ForwardFourierTransformChannel()
890 const MagickBooleanType modulus,ExceptionInfo *exception) in ForwardFourierTransformImage() argument
897 (void) modulus; in ForwardFourierTransformImage()
956 GrayPixelChannel,modulus,fourier_image,exception); in ForwardFourierTransformImage()
959 RedPixelChannel,modulus,fourier_image,exception); in ForwardFourierTransformImage()
973 GreenPixelChannel,modulus,fourier_image,exception); in ForwardFourierTransformImage()
[all …]
/external/syslinux/gpxe/src/crypto/axtls/
Drsa.c35 const uint8_t *modulus, int mod_len, in RSA_priv_key_new() argument
49 RSA_pub_key_new(ctx, modulus, mod_len, pub_exp, pub_len); in RSA_priv_key_new()
70 const uint8_t *modulus, int mod_len, in RSA_pub_key_new() argument
79 rsa_ctx->m = bi_import(bi_ctx, modulus, mod_len); in RSA_pub_key_new()
292 bigint *modulus, bigint *pub_exp)
306 decrypted_bi = bi_mod_power2(ctx, dat_bi, modulus, pub_exp);
/external/syslinux/gpxe/src/include/gpxe/
Dx509.h19 uint8_t *modulus; member
35 free ( rsa_pubkey->modulus ); in x509_free_rsa_public_key()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_internal-modexp.c18 const u8 *modulus, size_t modulus_len, in crypto_mod_exp() argument
35 bignum_set_unsigned_bin(bn_modulus, modulus, modulus_len) < 0) in crypto_mod_exp()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DBase64Encoder.java65 int modulus = length % 3; in encode() local
66 int dataLength = (length - modulus); in encode()
87 switch (modulus) in encode()
116 return (dataLength / 3) * 4 + ((modulus == 0) ? 0 : 4); in encode()
/external/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/
Dvalues.pass.cpp39 static_assert((LCE::modulus == m), ""); in test1()
64 where(LCE::modulus); in test1()

123