/libcore/ojluni/src/main/java/java/security/ |
D | KeyPair.java | 46 private PublicKey publicKey; field in KeyPair 59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { in KeyPair() argument 60 this.publicKey = publicKey; in KeyPair() 70 return publicKey; in getPublic()
|
D | Identity.java | 78 private PublicKey publicKey; field in Identity 161 return publicKey; in getPublicKey() 188 this.publicKey = key; in setPublicKey() 254 if (publicKey != null) { in addCertificate() 255 if (!keyEquals(publicKey, certificate.getPublicKey())) { in addCertificate() 260 publicKey = certificate.getPublicKey(); in addCertificate() 373 if ((publicKey == null) ^ (identity.publicKey == null)) in identityEquals() 376 if (publicKey != null && identity.publicKey != null) in identityEquals() 377 if (!publicKey.equals(identity.publicKey)) in identityEquals() 460 if (publicKey != null) { in printKeys()
|
D | Signer.java | 157 PublicKey publicKey = getPublicKey(); in printKeys() local 158 if (publicKey != null && privateKey != null) { in printKeys()
|
D | Signature.java | 599 public final void initVerify(PublicKey publicKey) in initVerify() argument 601 engineInitVerify(publicKey); in initVerify() 653 PublicKey publicKey = certificate.getPublicKey(); in initVerify() local 654 engineInitVerify(publicKey); in initVerify() 1367 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument 1371 if (sigSpi != null && (lock == null || publicKey == null)) { in engineInitVerify() 1372 sigSpi.engineInitVerify(publicKey); in engineInitVerify() 1374 chooseProvider(I_PUB, publicKey, null); in engineInitVerify() 1487 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument 1489 cipher.init(Cipher.DECRYPT_MODE, publicKey); in engineInitVerify()
|
D | SignatureSpi.java | 70 protected abstract void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 64 private PublicKey publicKey; field in SignatureBenchmark 79 this.publicKey = keyPair.getPublic(); in setUp() 123 verifier.initVerify(publicKey); in timeVerify()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | KeyAgreementThread.java | 50 public byte[] getSecretKey(String alg, byte[] publicKey) throws Exception { in getSecretKey() argument 51 X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(publicKey); in getSecretKey()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SignatureSpiTest.java | 107 protected void engineInitVerify(PublicKey publicKey) in testEngineGetParameters() 159 public void engineInitVerify(PublicKey publicKey) { in engineInitVerify() argument 193 public void engineInitVerify(PublicKey publicKey) { in engineInitVerify() argument 237 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
|
D | SignerTest.java | 133 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); in testGetPrivateKey() local 134 KeyPair kp = new KeyPair(publicKey, privateKey); in testGetPrivateKey()
|
D | KeyFactory2Test.java | 153 PublicKey publicKey = fact.generatePublic(publicKeySpec); in test_generatePublicLjava_security_spec_KeySpec() local 159 Arrays.toString(publicKey.getEncoded())); in test_generatePublicLjava_security_spec_KeySpec() 248 PublicKey publicKey = fact.generatePublic(publicKeySpec); in test_getKeySpecLjava_security_KeyLjava_lang_Class() local 260 Arrays.toString(publicKey.getEncoded())); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
|
D | KeyFactoryTest.java | 191 PublicKey publicKey = factory.generatePublic(keySpec); in testGeneratePublic() local 192 assertNotNull(publicKey); in testGeneratePublic() 193 assertTrue(Arrays.equals(key.encoded, publicKey.getEncoded())); in testGeneratePublic()
|
D | SignatureTest.java | 601 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument 661 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
|
D | Signature2Test.java | 562 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | ForwardBuilder.java | 850 PublicKey publicKey = anchor.getCAPublicKey(); in isPathCompleted() local 852 if (principal != null && publicKey != null && in isPathCompleted() 854 if (publicKey.equals(cert.getPublicKey())) { in isPathCompleted() 866 PublicKey publicKey = anchor.getCAPublicKey(); in isPathCompleted() local 874 if (PKIX.isDSAPublicKeyWithoutParams(publicKey)) { in isPathCompleted() 884 cert.verify(publicKey, buildParams.sigProvider()); in isPathCompleted() 886 cert.verify(publicKey); in isPathCompleted()
|
D | PKIX.java | 46 static boolean isDSAPublicKeyWithoutParams(PublicKey publicKey) { in isDSAPublicKeyWithoutParams() argument 47 return (publicKey instanceof DSAPublicKey && in isDSAPublicKeyWithoutParams() 48 ((DSAPublicKey)publicKey).getParams() == null); in isDSAPublicKeyWithoutParams()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | FakeOidProvider.java | 34 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 560 final PublicKey publicKey; in createKeys() local 565 publicKey = null; in createKeys() 602 publicKey = kp.getPublic(); in createKeys() 606 publicKey = privateEntry.getCertificate().getPublicKey(); in createKeys() 614 x509c = createCertificate(publicKey, signingKey, subject, issuer, keyUsage, ca, in createKeys() 648 public static X509Certificate createCa(PublicKey publicKey, in createCa() argument 653 return createCertificate(publicKey, privateKey, in createCa() 668 PublicKey publicKey, in createCertificate() argument 716 SubjectPublicKeyInfo.getInstance(publicKey.getEncoded())); in createCertificate()
|
/libcore/ojluni/annotations/hiddenapi/java/security/ |
D | Signature.java | 78 public final void initVerify(java.security.PublicKey publicKey) in initVerify() argument 206 protected void engineInitVerify(java.security.PublicKey publicKey) in engineInitVerify() argument 299 protected void engineInitVerify(java.security.PublicKey publicKey) in engineInitVerify() argument
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | SignatureTestMD2withRSA.java | 147 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
|
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/ |
D | CertBlocklistTest.java | 176 private static String getHash(PublicKey publicKey) throws Exception { in getHash() argument 177 byte[] encoded = publicKey.getEncoded(); in getHash()
|
/libcore/ojluni/annotations/mmodule/java/security/ |
D | Signature.annotated.java | 49 public final void initVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyExce… in initVerify() argument
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | Cipher.java | 1609 PublicKey publicKey = in init() local 1613 chooseProvider(InitType.KEY, opmode, (Key) publicKey, null, null, random); in init()
|