/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLRSAPrivateKey.java | 43 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 …]
|
D | OpenSSLRSAPublicKey.java | 42 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/ |
D | OpenSSLRSAPrivateKey.java | 42 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 …]
|
D | OpenSSLRSAPublicKey.java | 40 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/ |
D | RSAKeyParameters.java | 10 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/ |
D | RSAKeyParameters.java | 14 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/ |
D | RSAPublicKey.java | 17 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()
|
D | RSAPrivateKey.java | 18 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()
|
D | RSAPrivateKeyStructure.java | 21 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/ |
D | RSAPublicKeyStructure.java | 20 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/ |
D | euclidian.h | 18 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/ |
D | RSAPublicKeyStructure.java | 22 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/ |
D | RSAPublicKey.java | 21 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()
|
D | RSAPrivateKeyStructure.java | 23 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()
|
D | RSAPrivateKey.java | 22 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/ |
D | rsa-mod-exp.c | 42 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/ |
D | moduli.0 | 17 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/ |
D | modulus.pass.cpp | 22 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/ |
D | Base64Codec.java | 199 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/ |
D | rsa_signature_test.txt | 1632 # 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/ |
D | BCRSAPrivateKey.java | 29 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()
|
D | BCRSAPublicKey.java | 25 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/ |
D | BCRSAPublicKey.java | 29 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()
|
D | BCRSAPrivateKey.java | 33 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/ |
D | dumpRSAPublicKey.c | 24 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()
|