Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/main/java/java/security/
DIdentity.java78 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()
DKeyPair.java46 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()
DSigner.java157 PublicKey publicKey = getPublicKey(); in printKeys() local
158 if (publicKey != null && privateKey != null) { in printKeys()
DSignature.java599 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()
DSignatureSpi.java70 protected abstract void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
/libcore/benchmarks/src/benchmarks/regression/
DSignatureBenchmark.java64 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/
DKeyAgreementThread.java50 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/
DSignatureSpiTest.java107 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
DSignerTest.java133 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); in testGetPrivateKey() local
134 KeyPair kp = new KeyPair(publicKey, privateKey); in testGetPrivateKey()
DKeyFactory2Test.java153 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()
DKeyFactoryTest.java191 PublicKey publicKey = factory.generatePublic(keySpec); in testGeneratePublic() local
192 assertNotNull(publicKey); in testGeneratePublic()
193 assertTrue(Arrays.equals(key.encoded, publicKey.getEncoded())); in testGeneratePublic()
DSignatureTest.java601 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
661 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
DSignature2Test.java562 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DForwardBuilder.java850 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()
DPKIX.java46 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/
DFakeOidProvider.java34 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java560 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/luni/src/test/java/libcore/java/security/
DMockSignatureSpi.java59 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
DSignatureTest.java232 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
495 public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
/libcore/ojluni/annotations/hiddenapi/java/security/
DSignature.java78 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/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java66 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
/libcore/luni/src/test/java/tests/targets/security/
DSignatureTestMD2withRSA.java147 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/jce/provider/
DCertBlacklistTest.java176 private static String getHash(PublicKey publicKey) throws Exception { in getHash() argument
177 byte[] encoded = publicKey.getEncoded(); in getHash()
/libcore/ojluni/annotations/mmodule/java/security/
DSignature.annotated.java49 public final void initVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyExce… in initVerify() argument
/libcore/ojluni/src/main/java/javax/crypto/
DCipher.java1609 PublicKey publicKey = in init() local
1613 chooseProvider(InitType.KEY, opmode, (Key) publicKey, null, null, random); in init()

12