/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPublicKey.java | 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() 80 public BigInteger getModulus() in getModulus() method in BCRSAPublicKey 107 …yInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExpo… in getEncoded() 112 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode() 129 return getModulus().equals(key.getModulus()) in equals() 138 …buf.append("RSA Public Key [").append(RSAUtil.generateKeyFingerprint(this.getModulus())).append("]… in toString() 143 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPrivateKey.java | 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() 65 public BigInteger getModulus() in getModulus() method in BCRSAPrivateKey 87 …ption, DERNull.INSTANCE), new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded() 104 return getModulus().equals(key.getModulus()) in equals() 110 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode() 153 RSAUtil.generateKeyFingerprint(this.getModulus())).append("],[]").append(nl); in toString() 154 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPrivateCrtKey.java | 59 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey() 77 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 103 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 131 …SObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExpo… in getEncoded() 196 return this.getModulus().hashCode() in hashCode() 215 return this.getModulus().equals(key.getModulus()) in equals() 231 RSAUtil.generateKeyFingerprint(this.getModulus())).append("]") in toString() 236 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | RSAUtil.java | 46 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); in generatePublicKeyParameter() 57 return new RSAPrivateCrtKeyParameters(k.getModulus(), in generatePrivateKeyParameter() 65 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent()); in generatePrivateKeyParameter()
|
D | KeyFactorySpi.java | 49 return new RSAPublicKeySpec(k.getModulus(), k.getPublicExponent()); in engineGetKeySpec() 55 return new RSAPrivateKeySpec(k.getModulus(), k.getPrivateExponent()); in engineGetKeySpec() 62 k.getModulus(), k.getPublicExponent(), in engineGetKeySpec()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 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() 69 public BigInteger getModulus() in getModulus() method in BCRSAPrivateKey 91 …ll.INSTANCE), new com.android.org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded() 108 return getModulus().equals(key.getModulus()) in equals() 114 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode() 157 RSAUtil.generateKeyFingerprint(this.getModulus())).append("],[]").append(nl); in toString() 158 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPublicKey.java | 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() 84 public BigInteger getModulus() in getModulus() method in BCRSAPublicKey 111 …thmIdentifier, new com.android.org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExpo… in getEncoded() 116 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode() 133 return getModulus().equals(key.getModulus()) in equals() 142 …buf.append("RSA Public Key [").append(RSAUtil.generateKeyFingerprint(this.getModulus())).append("]… in toString() 147 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPrivateCrtKey.java | 61 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey() 79 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 105 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 133 …SObjectIdentifiers.rsaEncryption, DERNull.INSTANCE), new RSAPrivateKey(getModulus(), getPublicExpo… in getEncoded() 198 return this.getModulus().hashCode() in hashCode() 217 return this.getModulus().equals(key.getModulus()) in equals() 233 RSAUtil.generateKeyFingerprint(this.getModulus())).append("]") in toString() 238 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | RSAUtil.java | 48 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); in generatePublicKeyParameter() 59 return new RSAPrivateCrtKeyParameters(k.getModulus(), in generatePrivateKeyParameter() 67 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent()); in generatePrivateKeyParameter()
|
D | KeyFactorySpi.java | 53 return new RSAPublicKeySpec(k.getModulus(), k.getPublicExponent()); in engineGetKeySpec() 59 return new RSAPrivateKeySpec(k.getModulus(), k.getPrivateExponent()); in engineGetKeySpec() 66 k.getModulus(), k.getPublicExponent(), in engineGetKeySpec()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLRSAKeyFactory.java | 94 T result = (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec() 104 T result = (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec() 110 T result = (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent(), in engineGetKeySpec() 119 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 125 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 138 T result = (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), in engineGetKeySpec() 154 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 195 return engineGeneratePublic(new RSAPublicKeySpec(rsaKey.getModulus(), in engineTranslateKey() 202 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey() 220 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey()
|
D | OpenSSLRSAPrivateKey.java | 66 final BigInteger modulus = rsaKeySpec.getModulus(); in init() 105 .getModulus().toByteArray()), true); in wrapPlatformKey() 117 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 119 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 138 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 192 public final BigInteger getModulus() { in getModulus() method in OpenSSLRSAPrivateKey 227 return modulus.equals(other.getModulus()) in equals()
|
D | OpenSSLRSAPrivateCrtKey.java | 61 BigInteger modulus = rsaKeySpec.getModulus(); in init() 107 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 220 return getModulus().equals(other.getModulus()) in equals() 231 return getModulus().equals(other.getModulus()) in equals() 253 sb.append(getModulus().toString(16)); in toString()
|
D | OpenSSLRSAPublicKey.java | 56 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey() 72 rsaPublicKey.getModulus().toByteArray(), in getInstance() 113 public BigInteger getModulus() { in getModulus() method in OpenSSLRSAPublicKey 149 return modulus.equals(other.getModulus()) in equals()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLRSAKeyFactory.java | 99 T result = (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec() 109 T result = (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec() 115 T result = (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent(), in engineGetKeySpec() 124 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 130 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 143 T result = (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), in engineGetKeySpec() 159 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 200 return engineGeneratePublic(new RSAPublicKeySpec(rsaKey.getModulus(), in engineTranslateKey() 207 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey() 225 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey()
|
D | OpenSSLRSAPrivateKey.java | 67 final BigInteger modulus = rsaKeySpec.getModulus(); in init() 106 .getModulus().toByteArray()), true); in wrapPlatformKey() 118 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 120 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 139 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 193 public final BigInteger getModulus() { in getModulus() method in OpenSSLRSAPrivateKey 228 return modulus.equals(other.getModulus()) in equals()
|
D | OpenSSLRSAPrivateCrtKey.java | 62 BigInteger modulus = rsaKeySpec.getModulus(); in init() 108 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 221 return getModulus().equals(other.getModulus()) in equals() 232 return getModulus().equals(other.getModulus()) in equals() 254 sb.append(getModulus().toString(16)); in toString()
|
D | OpenSSLRSAPublicKey.java | 58 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey() 74 rsaPublicKey.getModulus().toByteArray(), in getInstance() 115 public BigInteger getModulus() { in getModulus() method in OpenSSLRSAPublicKey 151 return modulus.equals(other.getModulus()) in equals()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/ |
D | RSACoreEngine.java | 54 int bitSize = key.getModulus().bitLength(); in getInputBlockSize() 75 int bitSize = key.getModulus().bitLength(); in getOutputBlockSize() 115 if (res.compareTo(key.getModulus()) >= 0) in convertInput() 211 key.getExponent(), key.getModulus()); in processBlock()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/ |
D | RSACoreEngine.java | 53 int bitSize = key.getModulus().bitLength(); in getInputBlockSize() 74 int bitSize = key.getModulus().bitLength(); in getOutputBlockSize() 114 if (res.compareTo(key.getModulus()) >= 0) in convertInput() 210 key.getExponent(), key.getModulus()); in processBlock()
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | OpenSSLKeyTest.java | 58 assertEquals(RSA_MODULUS, publicKey.getModulus()); in test_fromPublicKeyPemInputStream() 66 assertEquals(RSA_MODULUS, privateKey.getModulus()); in test_fromPrivateKeyPemInputStream()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | OpenSSLKeyTest.java | 54 assertEquals(RSA_MODULUS, publicKey.getModulus()); in test_fromPublicKeyPemInputStream() 62 assertEquals(RSA_MODULUS, privateKey.getModulus()); in test_fromPrivateKeyPemInputStream()
|
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | RsaKeyTest.java | 1398 BigInteger n = key.getModulus(); in checkPrivateCrtKey() 1430 assertEquals(pub.getModulus(), priv.getModulus()); in checkPublicKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | RSAPublicKey.java | 66 public BigInteger getModulus() in getModulus() method in RSAPublicKey 90 v.add(new ASN1Integer(getModulus())); in toASN1Primitive()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | RSAPublicKeyStructure.java | 69 public BigInteger getModulus() in getModulus() method in RSAPublicKeyStructure 93 v.add(new ASN1Integer(getModulus())); in toASN1Primitive()
|