/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | RSAKeyParameters.java | 20 private BigInteger modulus; field in RSAKeyParameters 25 BigInteger modulus, in RSAKeyParameters() argument 38 this.modulus = validate(modulus); in RSAKeyParameters() 42 private BigInteger validate(BigInteger modulus) in validate() argument 44 if ((modulus.intValue() & 1) == 0) in validate() 53 return modulus; in validate() 56 if (!modulus.gcd(SMALL_PRIMES_PRODUCT).equals(ONE)) in validate() 63 return modulus; in validate() 68 return modulus; in getModulus()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
D | RSAKeyParameters.java | 24 private BigInteger modulus; field in RSAKeyParameters 29 BigInteger modulus, in RSAKeyParameters() argument 42 this.modulus = validate(modulus); in RSAKeyParameters() 46 private BigInteger validate(BigInteger modulus) in validate() argument 48 if ((modulus.intValue() & 1) == 0) in validate() 57 return modulus; in validate() 60 if (!modulus.gcd(SMALL_PRIMES_PRODUCT).equals(ONE)) in validate() 67 return modulus; in validate() 72 return modulus; in getModulus()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/crypto/params/ |
D | RSAKeyParameters.java | 24 private BigInteger modulus; field in RSAKeyParameters 29 BigInteger modulus, in RSAKeyParameters() argument 42 this.modulus = validate(modulus); in RSAKeyParameters() 46 private BigInteger validate(BigInteger modulus) in validate() argument 48 if ((modulus.intValue() & 1) == 0) in validate() 57 return modulus; in validate() 60 if (!modulus.gcd(SMALL_PRIMES_PRODUCT).equals(ONE)) in validate() 67 return modulus; in validate() 72 return modulus; in getModulus()
|
/external/conscrypt/common/src/main/java/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 | 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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLRSAPrivateKey.java | 44 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 …]
|
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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 28 protected BigInteger modulus; field in BCRSAPrivateKey 39 this.modulus = key.getModulus(); in BCRSAPrivateKey() 51 this.modulus = key.getModulus(); in BCRSAPrivateKey() 59 this.modulus = spec.getModulus(); in BCRSAPrivateKey() 61 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 67 this.modulus = key.getModulus(); in BCRSAPrivateKey() 69 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 77 this.modulus = key.getModulus(); in BCRSAPrivateKey() 79 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 84 return modulus; in getModulus() [all …]
|
D | BCRSAPublicKey.java | 25 private BigInteger modulus; field in BCRSAPublicKey 42 this.modulus = key.getModulus(); in BCRSAPublicKey() 51 this.modulus = spec.getModulus(); in BCRSAPublicKey() 53 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in BCRSAPublicKey() 60 this.modulus = key.getModulus(); in BCRSAPublicKey() 62 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in BCRSAPublicKey() 78 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 80 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in populateFromPublicKeyInfo() 95 return modulus; in getModulus() 185 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in readObject()
|
/external/rust/crates/ring/src/rsa/ |
D | signing.rs | 338 let q_mod_p = q.modulus.to_elem(&p.modulus); in from_der_reader() 342 bigint::Elem::from_be_bytes_padded(qInv, &p.modulus) in from_der_reader() 347 let q_mod_p = bigint::elem_mul(p.modulus.oneRR().as_ref(), q_mod_p.clone(), &p.modulus); in from_der_reader() 348 bigint::elem_inverse_consttime(q_mod_p, &p.modulus) in from_der_reader() 357 let qInv = bigint::elem_mul(p.modulus.oneRR().as_ref(), qInv, &p.modulus); in from_der_reader() 358 bigint::verify_inverses_consttime(&qInv, q_mod_p, &p.modulus) in from_der_reader() 381 .modulus() in public_modulus_len() 418 pub fn modulus(&self) -> io::Positive { in modulus() method 435 modulus: bigint::Modulus<M>, field 462 modulus: p, in new() [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 32 protected BigInteger modulus; field in BCRSAPrivateKey 43 this.modulus = key.getModulus(); in BCRSAPrivateKey() 55 this.modulus = key.getModulus(); in BCRSAPrivateKey() 63 this.modulus = spec.getModulus(); in BCRSAPrivateKey() 65 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 71 this.modulus = key.getModulus(); in BCRSAPrivateKey() 73 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 81 this.modulus = key.getModulus(); in BCRSAPrivateKey() 83 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 88 return modulus; in getModulus() [all …]
|
D | BCRSAPublicKey.java | 29 private BigInteger modulus; field in BCRSAPublicKey 46 this.modulus = key.getModulus(); in BCRSAPublicKey() 55 this.modulus = spec.getModulus(); in BCRSAPublicKey() 57 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in BCRSAPublicKey() 64 this.modulus = key.getModulus(); in BCRSAPublicKey() 66 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in BCRSAPublicKey() 82 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 84 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in populateFromPublicKeyInfo() 99 return modulus; in getModulus() 189 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in readObject()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 32 protected BigInteger modulus; field in BCRSAPrivateKey 43 this.modulus = key.getModulus(); in BCRSAPrivateKey() 55 this.modulus = key.getModulus(); in BCRSAPrivateKey() 63 this.modulus = spec.getModulus(); in BCRSAPrivateKey() 65 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 71 this.modulus = key.getModulus(); in BCRSAPrivateKey() 73 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 81 this.modulus = key.getModulus(); in BCRSAPrivateKey() 83 this.rsaPrivateKey = new RSAKeyParameters(true, modulus, privateExponent); in BCRSAPrivateKey() 88 return modulus; in getModulus() [all …]
|
D | BCRSAPublicKey.java | 29 private BigInteger modulus; field in BCRSAPublicKey 46 this.modulus = key.getModulus(); in BCRSAPublicKey() 55 this.modulus = spec.getModulus(); in BCRSAPublicKey() 57 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in BCRSAPublicKey() 64 this.modulus = key.getModulus(); in BCRSAPublicKey() 66 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in BCRSAPublicKey() 82 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 84 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in populateFromPublicKeyInfo() 99 return modulus; in getModulus() 189 this.rsaPublicKey = new RSAKeyParameters(false, modulus, publicExponent); in readObject()
|
/external/llvm-project/libcxx/test/std/utilities/time/time.cal/ |
D | euclidian.h | 17 const T modulus = maxValue - minValue + 1; in euclidian_addition() local 20 ret -= modulus; in euclidian_addition() 31 const T modulus = maxValue - minValue + 1; in euclidian_subtraction() local 34 ret += modulus; in euclidian_subtraction() 36 ret += modulus; in euclidian_subtraction()
|
/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/rust/crates/quiche/deps/boringssl/src/fuzz/ |
D | bn_mod_exp.cc | 88 bssl::UniquePtr<BIGNUM> modulus( in LLVMFuzzerTestOneInput() local 91 if (BN_is_zero(modulus.get())) { in LLVMFuzzerTestOneInput() 102 CHECK(mod_exp(expected.get(), base.get(), power.get(), modulus.get(), in LLVMFuzzerTestOneInput() 104 CHECK(BN_mod_exp(result.get(), base.get(), power.get(), modulus.get(), in LLVMFuzzerTestOneInput() 108 if (BN_is_odd(modulus.get())) { in LLVMFuzzerTestOneInput() 110 BN_MONT_CTX_new_for_modulus(modulus.get(), ctx.get())); in LLVMFuzzerTestOneInput() 113 CHECK(BN_nnmod(base.get(), base.get(), modulus.get(), ctx.get())); in LLVMFuzzerTestOneInput() 114 CHECK(BN_mod_exp_mont(result.get(), base.get(), power.get(), modulus.get(), in LLVMFuzzerTestOneInput() 118 modulus.get(), ctx.get(), mont.get())); in LLVMFuzzerTestOneInput()
|
/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/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()
|
/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()
|
/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_platform/bcprov/src/main/java/com/android/internal/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()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/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/rust/crates/ring/tests/ |
D | rsa_from_pkcs8_tests.txt | 22 # or because the private modulus length isn't a multiple of 512 bits. 27 # because the private modulus length isn't a multiple of 512 bits. 33 # modulus length isn't a multiple of 512 bits. 38 # private primes aren't equal and because the private modulus length isn't a 43 # RSA 2050-bit key that is valid, but we reject it because the private modulus 48 # RSA 2056-bit key that is valid, but we reject it because the private modulus 53 # RSA 2302-bit key that is valid, but we reject it because the private modulus 58 # RSA 2303-bit key that is valid, but we reject it because the private modulus 64 # RSA 2304-bit key that is valid, but we reject it because the private modulus
|
/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()
|