Home
last modified time | relevance | path

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

123456

/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLRSAPrivateKey.java43 BigInteger modulus; field in OpenSSLRSAPrivateKey
67 final BigInteger modulus = rsaKeySpec.getModulus(); in init() local
70 if (modulus == null) { in init()
78 modulus.toByteArray(), in init()
116 BigInteger modulus = null; in wrapJCAPrivateKeyForTLSStackOnly() local
118 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
120 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
122 if (modulus == null) { in wrapJCAPrivateKeyForTLSStackOnly()
127 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
139 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()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLRSAPrivateKey.java42 BigInteger modulus; field in OpenSSLRSAPrivateKey
66 final BigInteger modulus = rsaKeySpec.getModulus(); in init() local
69 if (modulus == null) { in init()
77 modulus.toByteArray(), in init()
115 BigInteger modulus = null; in wrapJCAPrivateKeyForTLSStackOnly() local
117 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
119 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
121 if (modulus == null) { in wrapJCAPrivateKeyForTLSStackOnly()
126 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
138 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() local
[all …]
DOpenSSLRSAPublicKey.java40 private BigInteger modulus; field in OpenSSLRSAPublicKey
106 modulus = new BigInteger(params[0]); in ensureReadParams()
115 return modulus; in getModulus()
149 return modulus.equals(other.getModulus()) in equals()
157 return modulus.hashCode() ^ publicExponent.hashCode(); in hashCode()
166 sb.append(modulus.toString(16)); in toString()
179 modulus.toByteArray(), in readObject()
/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()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/
DRSAKeyParameters.java14 private BigInteger modulus; field in RSAKeyParameters
19 BigInteger modulus, in RSAKeyParameters() argument
32 this.modulus = validate(modulus); in RSAKeyParameters()
36 private BigInteger validate(BigInteger modulus) in validate() argument
38 if ((modulus.intValue() & 1) == 0) in validate()
44 …if (!modulus.gcd(new BigInteger("14518877557776399015115874320830702024226143809848893135505709196… in validate()
55 return modulus; in validate()
60 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()
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()
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()
/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/libcxx/test/std/utilities/time/time.cal/
Deuclidian.h18 const T modulus = maxValue - minValue + 1; in euclidian_addition() local
21 ret -= modulus; in euclidian_addition()
32 const T modulus = maxValue - minValue + 1; in euclidian_subtraction() local
35 ret += modulus; in euclidian_subtraction()
37 ret += modulus; in euclidian_subtraction()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DRSAPublicKeyStructure.java22 private BigInteger modulus; field in RSAPublicKeyStructure
49 BigInteger modulus, in RSAPublicKeyStructure() argument
52 this.modulus = modulus; in RSAPublicKeyStructure()
67 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue(); in RSAPublicKeyStructure()
73 return modulus; in getModulus()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java21 private BigInteger modulus; field in RSAPublicKey
48 BigInteger modulus, in RSAPublicKey() argument
51 this.modulus = modulus; in RSAPublicKey()
66 modulus = ASN1Integer.getInstance(e.nextElement()).getPositiveValue(); in RSAPublicKey()
72 return modulus; in getModulus()
DRSAPrivateKeyStructure.java23 private BigInteger modulus; field in RSAPrivateKeyStructure
56 BigInteger modulus, in RSAPrivateKeyStructure() argument
66 this.modulus = modulus; in RSAPrivateKeyStructure()
88 modulus = ((ASN1Integer)e.nextElement()).getValue(); in RSAPrivateKeyStructure()
110 return modulus; in getModulus()
DRSAPrivateKey.java22 private BigInteger modulus; field in RSAPrivateKey
56 BigInteger modulus, in RSAPrivateKey() argument
66 this.modulus = modulus; in RSAPrivateKey()
88 modulus = ((ASN1Integer)e.nextElement()).getValue(); in RSAPrivateKey()
110 return modulus; in getModulus()
/external/u-boot/lib/rsa/
Drsa-mod-exp.c42 acc += (uint64_t)num[i] - key->modulus[i]; in subtract_modulus()
61 if (num[i] < key->modulus[i]) in greater_equal_modulus()
63 if (num[i] > key->modulus[i]) in greater_equal_modulus()
89 acc_b = (uint64_t)d0 * key->modulus[0] + (uint32_t)acc_a; in montgomery_mul_add_step()
92 acc_b = (acc_b >> 32) + (uint64_t)d0 * key->modulus[i] + in montgomery_mul_add_step()
268 if (!key.len || !prop->modulus || !prop->rr) { in rsa_mod_exp_sw()
282 key.modulus = key1; in rsa_mod_exp_sw()
284 rsa_convert_big_endian(key.modulus, (uint32_t *)prop->modulus, key.len); in rsa_mod_exp_sw()
286 if (!key.modulus || !key.rr) { in rsa_mod_exp_sw()
/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.
/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()
/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/boringssl/src/third_party/wycheproof_testvectors/
Drsa_signature_test.txt1632 # The key for this test vector has a modulus of size < 2048.
1640 # The key for this test vector has a modulus of size < 2048.
1648 # The key for this test vector has a modulus of size < 2048.
1656 # The key for this test vector has a modulus of size < 2048.
1664 # The key for this test vector has a modulus of size < 2048.
1672 # The key for this test vector has a modulus of size < 2048.
1680 # The key for this test vector has a modulus of size < 2048.
1695 # The key for this test vector has a modulus of size < 2048.
1702 # The key for this test vector has a modulus of size < 2048.
1709 # The key for this test vector has a modulus of size < 2048.
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPrivateKey.java29 protected BigInteger modulus; field in BCRSAPrivateKey
41 this.modulus = key.getModulus(); in BCRSAPrivateKey()
48 this.modulus = spec.getModulus(); in BCRSAPrivateKey()
55 this.modulus = key.getModulus(); in BCRSAPrivateKey()
61 this.modulus = key.getModulus(); in BCRSAPrivateKey()
67 return modulus; in getModulus()
DBCRSAPublicKey.java25 private BigInteger modulus; field in BCRSAPublicKey
33 this.modulus = key.getModulus(); in BCRSAPublicKey()
41 this.modulus = spec.getModulus(); in BCRSAPublicKey()
49 this.modulus = key.getModulus(); in BCRSAPublicKey()
66 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo()
82 return modulus; in getModulus()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java29 private BigInteger modulus; field in BCRSAPublicKey
37 this.modulus = key.getModulus(); in BCRSAPublicKey()
45 this.modulus = spec.getModulus(); in BCRSAPublicKey()
53 this.modulus = key.getModulus(); in BCRSAPublicKey()
70 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo()
86 return modulus; in getModulus()
DBCRSAPrivateKey.java33 protected BigInteger modulus; field in BCRSAPrivateKey
45 this.modulus = key.getModulus(); in BCRSAPrivateKey()
52 this.modulus = spec.getModulus(); in BCRSAPrivateKey()
59 this.modulus = key.getModulus(); in BCRSAPrivateKey()
65 this.modulus = key.getModulus(); in BCRSAPrivateKey()
71 return modulus; in getModulus()
/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()

123456