Home
last modified time | relevance | path

Searched refs:getModulus (Results 1 – 25 of 35) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCERSAPublicKey.java28 this.modulus = key.getModulus(); in JCERSAPublicKey()
35 this.modulus = spec.getModulus(); in JCERSAPublicKey()
42 this.modulus = key.getModulus(); in JCERSAPublicKey()
53 this.modulus = pubKey.getModulus(); in JCERSAPublicKey()
67 public BigInteger getModulus() in getModulus() method in JCERSAPublicKey
94 …dentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPublicKeyStructure(getModulus(), getPublicExpo… in getEncoded()
99 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode()
116 return getModulus().equals(key.getModulus()) in equals()
126 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
DJCERSAPrivateKey.java40 this.modulus = key.getModulus(); in JCERSAPrivateKey()
47 this.modulus = spec.getModulus(); in JCERSAPrivateKey()
54 this.modulus = key.getModulus(); in JCERSAPrivateKey()
58 public BigInteger getModulus() in getModulus() method in JCERSAPrivateKey
80 …ption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded()
97 return getModulus().equals(key.getModulus()) in equals()
103 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode()
DJCERSAPrivateCrtKey.java58 this.modulus = spec.getModulus(); in JCERSAPrivateCrtKey()
76 this.modulus = key.getModulus(); in JCERSAPrivateCrtKey()
102 this.modulus = key.getModulus(); in JCERSAPrivateCrtKey()
130 …SObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExpo… in getEncoded()
195 return this.getModulus().hashCode() in hashCode()
214 return this.getModulus().equals(key.getModulus()) in equals()
230 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DBCRSAPublicKey.java34 this.modulus = key.getModulus(); in BCRSAPublicKey()
42 this.modulus = spec.getModulus(); in BCRSAPublicKey()
50 this.modulus = key.getModulus(); in BCRSAPublicKey()
67 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo()
81 public BigInteger getModulus() in getModulus() method in BCRSAPublicKey
108 …yInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExpo… in getEncoded()
113 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode()
130 return getModulus().equals(key.getModulus()) in equals()
140 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
DBCRSAPrivateKey.java40 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()
64 public BigInteger getModulus() in getModulus() method in BCRSAPrivateKey
86 …ption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded()
103 return getModulus().equals(key.getModulus()) in equals()
109 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode()
DBCRSAPrivateCrtKey.java58 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey()
76 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey()
102 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey()
130 …SObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExpo… in getEncoded()
195 return this.getModulus().hashCode() in hashCode()
214 return this.getModulus().equals(key.getModulus()) in equals()
230 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
DRSAUtil.java44 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); in generatePublicKeyParameter()
55 return new RSAPrivateCrtKeyParameters(k.getModulus(), in generatePrivateKeyParameter()
63 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent()); in generatePrivateKeyParameter()
DKeyFactorySpi.java40 return new RSAPublicKeySpec(k.getModulus(), k.getPublicExponent()); in engineGetKeySpec()
46 return new RSAPrivateKeySpec(k.getModulus(), k.getPrivateExponent()); in engineGetKeySpec()
53 k.getModulus(), k.getPublicExponent(), in engineGetKeySpec()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLRSAPrivateCrtKey.java58 BigInteger modulus = rsaKeySpec.getModulus(); in init()
104 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance()
218 return getModulus().equals(other.getModulus()) in equals()
221 return getModulus().equals(other.getModulus()) in equals()
234 return getModulus().equals(other.getModulus()); in equals()
236 return getModulus().equals(other.getModulus()) in equals()
266 sb.append(getModulus().toString(16)); in toString()
DOpenSSLRSAKeyFactory.java88 return (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec()
96 return (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec()
100 return (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent(), in engineGetKeySpec()
107 return (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec()
111 return (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec()
122 return (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), in engineGetKeySpec()
136 return (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec()
174 return engineGeneratePublic(new RSAPublicKeySpec(rsaKey.getModulus(), in engineTranslateKey()
181 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey()
199 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey()
DOpenSSLRSAPrivateKey.java63 final BigInteger modulus = rsaKeySpec.getModulus(); in init()
102 .getModulus().toByteArray()), true); in wrapPlatformKey()
114 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
116 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly()
135 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance()
193 public final BigInteger getModulus() { in getModulus() method in OpenSSLRSAPrivateKey
246 return modulus.equals(other.getModulus()) in equals()
DOpenSSLRSAPublicKey.java51 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey()
67 rsaPublicKey.getModulus().toByteArray(), in getInstance()
108 public BigInteger getModulus() { in getModulus() method in OpenSSLRSAPublicKey
144 return modulus.equals(other.getModulus()) in equals()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRSACoreEngine.java52 int bitSize = key.getModulus().bitLength(); in getInputBlockSize()
73 int bitSize = key.getModulus().bitLength(); in getOutputBlockSize()
113 if (res.compareTo(key.getModulus()) >= 0) in convertInput()
200 key.getExponent(), key.getModulus()); in processBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DRSAPublicKeyStructure.java69 public BigInteger getModulus() in getModulus() method in RSAPublicKeyStructure
93 v.add(new ASN1Integer(getModulus())); in toASN1Primitive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DRSAPublicKey.java66 public BigInteger getModulus() in getModulus() method in RSAPublicKey
90 v.add(new ASN1Integer(getModulus())); in toASN1Primitive()
DRSAPrivateKeyStructure.java106 public BigInteger getModulus() in getModulus() method in RSAPrivateKeyStructure
173 v.add(new ASN1Integer(getModulus())); in toASN1Primitive()
DRSAPrivateKey.java104 public BigInteger getModulus() in getModulus() method in RSAPrivateKey
171 v.add(new ASN1Integer(getModulus())); in toASN1Primitive()
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DPoloChallengeResponse.java105 byte[] clientModulus = clientPubRsa.getModulus().abs().toByteArray(); in getAlpha()
108 byte[] serverModulus = serverPubRsa.getModulus().abs().toByteArray(); in getAlpha()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
DRSAKeyParameters.java22 public BigInteger getModulus() in getModulus() method in RSAKeyParameters
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/interfaces/
DRSAPrivateKeyTest.java75 public BigInteger getModulus() { in getModulus() method in RSAPrivateKeyTest.checkRSAPrivateKey
DRSAPublicKeyTest.java71 public BigInteger getModulus() { in getModulus() method in RSAPublicKeyTest.checkRSAPublicKey
DRSAPrivateCrtKeyTest.java95 public BigInteger getModulus() { in getModulus() method in RSAPrivateCrtKeyTest.checkRSAPrivateCrtKey
DRSAMultiPrimePrivateCrtKeyTest.java56 public BigInteger getModulus() { in getModulus() method in RSAMultiPrimePrivateCrtKeyTest.checkCrtKey
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DRSAPrivateKeySpecTest.java63 assertEquals(1234567890L, rpks.getModulus().longValue()); in testGetModulus()
DRSAPublicKeySpecTest.java78 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus())); in testGetModulus()

12