Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/security/
DIdentity.java80 private PublicKey publicKey; field in Identity
163 return publicKey; in getPublicKey()
190 this.publicKey = key; in setPublicKey()
256 if (publicKey != null) { in addCertificate()
257 if (!keyEquals(publicKey, certificate.getPublicKey())) { in addCertificate()
262 publicKey = certificate.getPublicKey(); in addCertificate()
375 if ((publicKey == null) ^ (identity.publicKey == null)) in identityEquals()
378 if (publicKey != null && identity.publicKey != null) in identityEquals()
379 if (!publicKey.equals(identity.publicKey)) in identityEquals()
462 if (publicKey != null) { in printKeys()
DKeyPair.java47 private PublicKey publicKey; field in KeyPair
60 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { in KeyPair() argument
61 this.publicKey = publicKey; in KeyPair()
71 return publicKey; in getPublic()
DSignature.java603 public final void initVerify(PublicKey publicKey) in initVerify() argument
605 engineInitVerify(publicKey); in initVerify()
657 PublicKey publicKey = certificate.getPublicKey(); in initVerify() local
658 engineInitVerify(publicKey); in initVerify()
1371 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
1375 if (sigSpi != null && (lock == null || publicKey == null)) { in engineInitVerify()
1376 sigSpi.engineInitVerify(publicKey); in engineInitVerify()
1378 chooseProvider(I_PUB, publicKey, null); in engineInitVerify()
1491 protected void engineInitVerify(PublicKey publicKey) in engineInitVerify() argument
1493 cipher.init(Cipher.DECRYPT_MODE, publicKey); in engineInitVerify()
DSigner.java159 PublicKey publicKey = getPublicKey(); in printKeys() local
160 if (publicKey != null && privateKey != null) { in printKeys()
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/tools/go/certutil/
Dcertutil.go80 func (e *Entity) publicKey() *ecdsa.PublicKey { func
112 return ca.doSign(child.Template, child.publicKey())
118 return ca.doSign(&copyTemplate, child.publicKey())
/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.java195 PublicKey publicKey = factory.generatePublic(keySpec); in testGeneratePublic() local
196 assertNotNull(publicKey); in testGeneratePublic()
197 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
/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/tests/targets/security/
DKeyStorePkcs7FormatTest.java142 RSAPublicKey publicKey = (RSAPublicKey) certificate.getPublicKey(); in keystoreIsReadableAndConsistent() local
150 cipher.init(Cipher.DECRYPT_MODE, publicKey); in keystoreIsReadableAndConsistent()
DSignatureTestMD2withRSA.java147 protected void engineInitVerify(PublicKey publicKey) 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/cert/
DFakeOidProvider.java38 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
/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/com/android/org/bouncycastle/jce/provider/
DCertBlocklistTest.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

12