/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 39 this.modulus = key.getModulus(); in BCRSAPrivateKey() 51 this.modulus = key.getModulus(); in BCRSAPrivateKey() 59 this.modulus = spec.getModulus(); in BCRSAPrivateKey() 67 this.modulus = key.getModulus(); in BCRSAPrivateKey() 77 this.modulus = key.getModulus(); in BCRSAPrivateKey() 82 public BigInteger getModulus() in getModulus() method in BCRSAPrivateKey 113 …Info(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded() 130 return getModulus().equals(key.getModulus()) in equals() 136 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode() 187 RSAUtil.generateKeyFingerprint(this.getModulus())).append("],[]").append(nl); in toString() [all …]
|
D | BCRSAPublicKey.java | 42 this.modulus = key.getModulus(); in BCRSAPublicKey() 51 this.modulus = spec.getModulus(); in BCRSAPublicKey() 60 this.modulus = key.getModulus(); in BCRSAPublicKey() 78 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 93 public BigInteger getModulus() in getModulus() method in BCRSAPublicKey 124 …yInfo(algorithmIdentifier, new org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExpo… in getEncoded() 134 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode() 151 return getModulus().equals(key.getModulus()) in equals() 160 …buf.append("RSA Public Key [").append(RSAUtil.generateKeyFingerprint(this.getModulus())).append("]… in toString() 165 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPrivateCrtKey.java | 74 super(new RSAPrivateCrtKeyParameters(spec.getModulus(), in BCRSAPrivateCrtKey() 78 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey() 96 super(new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey() 100 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 133 super(algorithmIdentifier, new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey() 137 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 165 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new RSAPrivateKey(getModulus(), getPu… in getEncoded() 230 return this.getModulus().hashCode() in hashCode() 249 return this.getModulus().equals(key.getModulus()) in equals() 266 this.rsaPrivateKey = new RSAPrivateCrtKeyParameters(this.getModulus(), in readObject() [all …]
|
D | RSAUtil.java | 51 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); in generatePublicKeyParameter() 66 return new RSAPrivateCrtKeyParameters(k.getModulus(), in generatePrivateKeyParameter() 74 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent()); in generatePrivateKeyParameter()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 43 this.modulus = key.getModulus(); in BCRSAPrivateKey() 55 this.modulus = key.getModulus(); in BCRSAPrivateKey() 63 this.modulus = spec.getModulus(); in BCRSAPrivateKey() 71 this.modulus = key.getModulus(); in BCRSAPrivateKey() 81 this.modulus = key.getModulus(); in BCRSAPrivateKey() 86 public BigInteger getModulus() in getModulus() method in BCRSAPrivateKey 117 …ier, new com.android.internal.org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded() 134 return getModulus().equals(key.getModulus()) in equals() 140 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode() 191 RSAUtil.generateKeyFingerprint(this.getModulus())).append("],[]").append(nl); in toString() [all …]
|
D | BCRSAPublicKey.java | 46 this.modulus = key.getModulus(); in BCRSAPublicKey() 55 this.modulus = spec.getModulus(); in BCRSAPublicKey() 64 this.modulus = key.getModulus(); in BCRSAPublicKey() 82 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 97 public BigInteger getModulus() in getModulus() method in BCRSAPublicKey 128 …fier, new com.android.internal.org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExpo… in getEncoded() 138 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode() 155 return getModulus().equals(key.getModulus()) in equals() 164 …buf.append("RSA Public Key [").append(RSAUtil.generateKeyFingerprint(this.getModulus())).append("]… in toString() 169 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPrivateCrtKey.java | 76 super(new RSAPrivateCrtKeyParameters(spec.getModulus(), in BCRSAPrivateCrtKey() 80 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey() 98 super(new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey() 102 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 135 super(algorithmIdentifier, new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey() 139 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 167 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new RSAPrivateKey(getModulus(), getPu… in getEncoded() 232 return this.getModulus().hashCode() in hashCode() 251 return this.getModulus().equals(key.getModulus()) in equals() 268 this.rsaPrivateKey = new RSAPrivateCrtKeyParameters(this.getModulus(), in readObject() [all …]
|
D | RSAUtil.java | 53 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); in generatePublicKeyParameter() 68 return new RSAPrivateCrtKeyParameters(k.getModulus(), in generatePrivateKeyParameter() 76 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent()); in generatePrivateKeyParameter()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 43 this.modulus = key.getModulus(); in BCRSAPrivateKey() 55 this.modulus = key.getModulus(); in BCRSAPrivateKey() 63 this.modulus = spec.getModulus(); in BCRSAPrivateKey() 71 this.modulus = key.getModulus(); in BCRSAPrivateKey() 81 this.modulus = key.getModulus(); in BCRSAPrivateKey() 86 public BigInteger getModulus() in getModulus() method in BCRSAPrivateKey 117 …hmIdentifier, new com.android.org.bouncycastle.asn1.pkcs.RSAPrivateKey(getModulus(), ZERO, getPriv… in getEncoded() 134 return getModulus().equals(key.getModulus()) in equals() 140 return getModulus().hashCode() ^ getPrivateExponent().hashCode(); in hashCode() 191 RSAUtil.generateKeyFingerprint(this.getModulus())).append("],[]").append(nl); in toString() [all …]
|
D | BCRSAPublicKey.java | 46 this.modulus = key.getModulus(); in BCRSAPublicKey() 55 this.modulus = spec.getModulus(); in BCRSAPublicKey() 64 this.modulus = key.getModulus(); in BCRSAPublicKey() 82 this.modulus = pubKey.getModulus(); in populateFromPublicKeyInfo() 97 public BigInteger getModulus() in getModulus() method in BCRSAPublicKey 128 …thmIdentifier, new com.android.org.bouncycastle.asn1.pkcs.RSAPublicKey(getModulus(), getPublicExpo… in getEncoded() 138 return this.getModulus().hashCode() ^ this.getPublicExponent().hashCode(); in hashCode() 155 return getModulus().equals(key.getModulus()) in equals() 164 …buf.append("RSA Public Key [").append(RSAUtil.generateKeyFingerprint(this.getModulus())).append("]… in toString() 169 buf.append(" modulus: ").append(this.getModulus().toString(16)).append(nl); in toString()
|
D | BCRSAPrivateCrtKey.java | 76 super(new RSAPrivateCrtKeyParameters(spec.getModulus(), in BCRSAPrivateCrtKey() 80 this.modulus = spec.getModulus(); in BCRSAPrivateCrtKey() 98 super(new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey() 102 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 135 super(algorithmIdentifier, new RSAPrivateCrtKeyParameters(key.getModulus(), in BCRSAPrivateCrtKey() 139 this.modulus = key.getModulus(); in BCRSAPrivateCrtKey() 167 …return KeyUtil.getEncodedPrivateKeyInfo(algorithmIdentifier, new RSAPrivateKey(getModulus(), getPu… in getEncoded() 232 return this.getModulus().hashCode() in hashCode() 251 return this.getModulus().equals(key.getModulus()) in equals() 268 this.rsaPrivateKey = new RSAPrivateCrtKeyParameters(this.getModulus(), in readObject() [all …]
|
D | RSAUtil.java | 53 return new RSAKeyParameters(false, key.getModulus(), key.getPublicExponent()); in generatePublicKeyParameter() 68 return new RSAPrivateCrtKeyParameters(k.getModulus(), in generatePrivateKeyParameter() 76 return new RSAKeyParameters(true, k.getModulus(), k.getPrivateExponent()); in generatePrivateKeyParameter()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLRSAPrivateCrtKey.java | 62 BigInteger modulus = rsaKeySpec.getModulus(); in init() 108 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 222 return getModulus().equals(other.getModulus()) in equals() 225 return getModulus().equals(other.getModulus()) in equals() 238 return getModulus().equals(other.getModulus()); in equals() 240 return getModulus().equals(other.getModulus()) in equals() 263 sb.append(getModulus().toString(16)); in toString()
|
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 | 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() 196 public final BigInteger getModulus() { in getModulus() method in OpenSSLRSAPrivateKey 237 return modulus.equals(other.getModulus()) in equals()
|
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 | OpenSSLRSAPrivateCrtKey.java | 63 BigInteger modulus = rsaKeySpec.getModulus(); in init() 109 BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 223 return getModulus().equals(other.getModulus()) in equals() 226 return getModulus().equals(other.getModulus()) in equals() 239 return getModulus().equals(other.getModulus()); in equals() 241 return getModulus().equals(other.getModulus()) in equals() 264 sb.append(getModulus().toString(16)); in toString()
|
D | OpenSSLRSAKeyFactory.java | 97 T result = (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec() 107 T result = (T) new RSAPublicKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent()); in engineGetKeySpec() 113 T result = (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), rsaKey.getPublicExponent(), in engineGetKeySpec() 122 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 128 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 141 T result = (T) new RSAPrivateCrtKeySpec(rsaKey.getModulus(), in engineGetKeySpec() 157 T result = (T) new RSAPrivateKeySpec(rsaKey.getModulus(), rsaKey.getPrivateExponent()); in engineGetKeySpec() 198 return engineGeneratePublic(new RSAPublicKeySpec(rsaKey.getModulus(), in engineTranslateKey() 205 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey() 223 BigInteger modulus = rsaKey.getModulus(); in engineTranslateKey()
|
D | OpenSSLRSAPrivateKey.java | 68 final BigInteger modulus = rsaKeySpec.getModulus(); in init() 107 .getModulus().toByteArray()), true); in wrapPlatformKey() 119 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 121 modulus = ((RSAKey) publicKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 140 final BigInteger modulus = rsaPrivateKey.getModulus(); in getInstance() 197 public final BigInteger getModulus() { in getModulus() method in OpenSSLRSAPrivateKey 238 return modulus.equals(other.getModulus()) in equals()
|
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/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/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/repackaged_platform/bcprov/src/main/java/com/android/internal/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/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/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()
|