/libcore/luni/src/main/java/java/security/interfaces/ |
RSAKey.java | 32 public BigInteger getModulus();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
BCRSAPublicKey.java | 26 this.modulus = key.getModulus(); 33 this.modulus = spec.getModulus(); 40 this.modulus = key.getModulus(); 51 this.modulus = pubKey.getModulus(); 65 public BigInteger getModulus() 92 return KeyUtil.getEncodedSubjectPublicKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExponent())); 97 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); 114 return getModulus().equals(key.getModulus()) 124 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl) [all...] |
BCRSAPrivateKey.java | 40 this.modulus = key.getModulus(); 47 this.modulus = spec.getModulus(); 54 this.modulus = key.getModulus(); 58 public BigInteger getModulus() 80 return KeyUtil.getEncodedPrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPrivateExponent(), ZERO, ZERO, ZERO, ZERO, ZERO)); 97 return getModulus().equals(key.getModulus()) 103 return getModulus().hashCode() ^ getPrivateExponent().hashCode();
|
RSAUtil.java | 44 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); 55 return new RSAPrivateCrtKeyParameters(k.getModulus(), 63 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent());
|
BCRSAPrivateCrtKey.java | 58 this.modulus = spec.getModulus(); 76 this.modulus = key.getModulus(); 102 this.modulus = key.getModulus(); 130 return KeyUtil.getEncodedPrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExponent(), getPrivateExponent(), getPrimeP(), getPrimeQ(), getPrimeExponentP(), getPrimeExponentQ(), getCrtCoefficient())); 195 return this.getModulus().hashCode() 214 return this.getModulus().equals(key.getModulus()) 230 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
JCERSAPublicKey.java | 28 this.modulus = key.getModulus(); 35 this.modulus = spec.getModulus(); 42 this.modulus = key.getModulus(); 53 this.modulus = pubKey.getModulus(); 67 public BigInteger getModulus() 94 return KeyUtil.getEncodedSubjectPublicKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPublicKeyStructure(getModulus(), getPublicExponent())); 99 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); 116 return getModulus().equals(key.getModulus()) 126 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl) [all...] |
JCERSAPrivateKey.java | 40 this.modulus = key.getModulus(); 47 this.modulus = spec.getModulus(); 54 this.modulus = key.getModulus(); 58 public BigInteger getModulus() 80 return KeyUtil.getEncodedPrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPrivateExponent(), ZERO, ZERO, ZERO, ZERO, ZERO)); 97 return getModulus().equals(key.getModulus()) 103 return getModulus().hashCode() ^ getPrivateExponent().hashCode();
|
JCERSAPrivateCrtKey.java | 58 this.modulus = spec.getModulus(); 76 this.modulus = key.getModulus(); 102 this.modulus = key.getModulus(); 130 return KeyUtil.getEncodedPrivateKeyInfo(new AlgorithmIdentifier(PKCSObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExponent(), getPrivateExponent(), getPrimeP(), getPrimeQ(), getPrimeExponentP(), getPrimeExponentQ(), getCrtCoefficient())); 195 return this.getModulus().hashCode() 214 return this.getModulus().equals(key.getModulus()) 230 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
RSAKeyParameters.java | 22 public BigInteger getModulus()
|
/libcore/luni/src/main/java/java/security/spec/ |
RSAPrivateKeySpec.java | 54 public BigInteger getModulus() {
|
RSAPublicKeySpec.java | 54 public BigInteger getModulus() {
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
RSAKeyTest.java | 30 * #getModulus() 44 assertEquals("invalid modulus", n, key.getModulus()); 48 assertEquals("invalid modulus", n, key.getModulus());
|
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLRSAKeyFactory.java | 88 return (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); 96 return (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); 100 return (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent(), 107 return (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); 111 return (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); 122 return (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), 136 return (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); 174 return engineGeneratePublic(new RSAPublicKeySpec(rsaKey.getModulus(), 181 BigInteger modulus = rsaKey.getModulus(); 199 BigInteger modulus = rsaKey.getModulus(); [all...] |
OpenSSLRSAPublicKey.java | 51 spec.getModulus().toByteArray(), 67 rsaPublicKey.getModulus().toByteArray(), 108 public BigInteger getModulus() { 144 return modulus.equals(other.getModulus())
|
OpenSSLRSAPrivateCrtKey.java | 58 BigInteger modulus = rsaKeySpec.getModulus(); 96 BigInteger modulus = rsaPrivateKey.getModulus(); 210 return getModulus().equals(other.getModulus()) 213 return getModulus().equals(other.getModulus()) 226 return getModulus().equals(other.getModulus()); 228 return getModulus().equals(other.getModulus()) [all...] |
ChainStrengthAnalyzer.java | 42 int modulusLength = ((RSAPublicKey) pubkey).getModulus().bitLength();
|
OpenSSLRSAPrivateKey.java | 60 final BigInteger modulus = rsaKeySpec.getModulus(); 93 final BigInteger modulus = rsaPrivateKey.getModulus(); 151 public final BigInteger getModulus() { 203 return modulus.equals(other.getModulus())
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/ |
RSAPrivateKeyTest.java | 70 public BigInteger getModulus() {
|
RSAPublicKeyTest.java | 68 public BigInteger getModulus() {
|
RSAMultiPrimePrivateCrtKeyTest.java | 57 public BigInteger getModulus() {
|
RSAPrivateCrtKeyTest.java | 85 public BigInteger getModulus() {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
RSAPublicKey.java | 66 public BigInteger getModulus() 90 v.add(new ASN1Integer(getModulus()));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
RSAPublicKeyStructure.java | 69 public BigInteger getModulus() 93 v.add(new ASN1Integer(getModulus()));
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/ |
RSAPrivateKeySpecTest.java | 56 * Test for <code>getModulus()</code> method<br> 63 assertEquals(1234567890L, rpks.getModulus().longValue());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
RSACoreEngine.java | 52 int bitSize = key.getModulus().bitLength(); 73 int bitSize = key.getModulus().bitLength(); 113 if (res.compareTo(key.getModulus()) >= 0) 200 key.getExponent(), key.getModulus());
|