Home
last modified time | relevance | path

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

12

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertificateFactory_ImplTest.java210 private static PublicKey publicKey; field in CertificateFactory_ImplTest
219 publicKey = keyFactory.generatePublic(publicKeySpec);
222 publicKey = null;
226 publicKey = null;
269 if (publicKey != null) { in testGenerateCRLs()
272 ((X509CRL) i.next()).verify(publicKey); in testGenerateCRLs()
312 if (publicKey != null) { in testGenerateBase64CRL()
314 crl.verify(publicKey); in testGenerateBase64CRL()
340 if (publicKey != null) { in verifyCRLs()
343 ((X509CRL) it.next()).verify(publicKey); in verifyCRLs()
[all …]
/external/oauth/core/src/main/java/net/oauth/signature/
DRSA_SHA1.java90 private PublicKey publicKey = null; field in RSA_SHA1
117 publicKey = (PublicKey)publicKeyObject; in initialize()
119 publicKey = getPublicKeyFromPem((String)publicKeyObject); in initialize()
121 publicKey = getPublicKeyFromDer((byte[])publicKeyObject); in initialize()
132 publicKey = ((X509Certificate) certObject).getPublicKey(); in initialize()
134 publicKey = getPublicKeyFromPemCert((String)certObject); in initialize()
136 publicKey = getPublicKeyFromDerCert((byte[])certObject); in initialize()
229 if (publicKey == null) { in verify()
235 verifier.initVerify(publicKey); in verify()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/jcajce/
DJcaSimpleSignerInfoVerifierBuilder.java56 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument
59 return new JcaContentVerifierProviderBuilder().build(publicKey); in createContentVerifierProvider()
91 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument
94 … return new JcaContentVerifierProviderBuilder().setProvider(providerName).build(publicKey); in createContentVerifierProvider()
126 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument
129 return new JcaContentVerifierProviderBuilder().setProvider(provider).build(publicKey); in createContentVerifierProvider()
DJcaSignerInfoVerifierBuilder.java86 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument
89 return new JcaContentVerifierProviderBuilder().build(publicKey); in createContentVerifierProvider()
121 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument
124 … return new JcaContentVerifierProviderBuilder().setProvider(providerName).build(publicKey); in createContentVerifierProvider()
156 ContentVerifierProvider createContentVerifierProvider(PublicKey publicKey) in createContentVerifierProvider() argument
159 return new JcaContentVerifierProviderBuilder().setProvider(provider).build(publicKey); in createContentVerifierProvider()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DDSASigner.java55 PublicKey publicKey) in engineInitVerify() argument
65 if (publicKey instanceof DSAKey) in engineInitVerify()
67 param = DSAUtil.generatePublicKeyParameter(publicKey); in engineInitVerify()
73 byte[] bytes = publicKey.getEncoded(); in engineInitVerify()
75 publicKey = new BCDSAPublicKey(SubjectPublicKeyInfo.getInstance(bytes)); in engineInitVerify()
77 if (publicKey instanceof DSAKey) in engineInitVerify()
79 param = DSAUtil.generatePublicKeyParameter(publicKey); in engineInitVerify()
/external/smack/src/org/xbill/DNS/
DKEYBase.java23 protected PublicKey publicKey = null; field in KEYBase
145 if (publicKey != null) in getPublicKey()
146 return publicKey; in getPublicKey()
148 publicKey = DNSSEC.toPublicKey(this); in getPublicKey()
149 return publicKey; in getPublicKey()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaContentVerifierProviderBuilder.java113 public ContentVerifierProvider build(final PublicKey publicKey) in build() argument
131 SignatureOutputStream stream = createSignatureStream(algorithm, publicKey); in build()
133 Signature rawSig = createRawSig(algorithm, publicKey); in build()
147 …ate SignatureOutputStream createSignatureStream(AlgorithmIdentifier algorithm, PublicKey publicKey)
154 sig.initVerify(publicKey);
164 private Signature createRawSig(AlgorithmIdentifier algorithm, PublicKey publicKey)
173 rawSig.initVerify(publicKey);
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/
DDSAKeyFactoryImplTest.java62 static DSAPublicKey publicKey; field in DSAKeyFactoryImplTest
110 publicKey = (DSAPublicKey) keyPair.getPublic();
113 publicParams = publicKey.getParams();
118 publicY = publicKey.getY();
120 publicAlgorithm = publicKey.getAlgorithm();
121 publicFormat = publicKey.getFormat();
123 publicEncoding = publicKey.getEncoded();
534 kf.getKeySpec( publicKey, DSAPrivateKeySpec.class); in testGetKeySpec01()
539 kf.getKeySpec( publicKey, PKCS8EncodedKeySpec.class); in testGetKeySpec01()
568 kf.getKeySpec(publicKey, null); in testGetKeySpec02()
[all …]
DSHA1withDSA_SignatureTest.java86 private static PublicKey publicKey; field in SHA1withDSA_SignatureTest
119 publicKey = keys.getPublic();
163 signs[4].initVerify(publicKey); in setUp()
474 verifyingSign.initVerify(publicKey); // the same key
718 verifyingSign.initVerify(publicKey);
733 verifyingSign.initVerify(publicKey);
973 static DSAPublicKey publicKey = new DSAPublicKey() {
1116 return publicKey;
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DSubjectPublicKeyInfo.java52 ASN1Encodable publicKey) in SubjectPublicKeyInfo() argument
55 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
61 byte[] publicKey) in SubjectPublicKeyInfo() argument
63 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPrivateKey.java52 private DERBitString publicKey; field in JCEECPrivateKey
109 this.publicKey = key.publicKey; in JCEECPrivateKey()
140 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey()
179 publicKey = getPublicKeyDetails(pubKey); in JCEECPrivateKey()
268 this.publicKey = ec.getPublicKey(); in populateFromPrivKeyInfo()
327 if (publicKey != null) in getEncoded()
329 keyStructure = new ECPrivateKeyStructure(this.getS(), publicKey, params); in getEncoded()
DCertBlacklist.java206 public boolean isPublicKeyBlackListed(PublicKey publicKey) { in isPublicKeyBlackListed() argument
207 byte[] encoded = publicKey.getEncoded(); in isPublicKeyBlackListed()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPrivateKey.java53 private transient DERBitString publicKey; field in BCECPrivateKey
117 this.publicKey = key.publicKey; in BCECPrivateKey()
151 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey()
192 publicKey = getPublicKeyDetails(pubKey); in BCECPrivateKey()
287 this.publicKey = ec.getPublicKey(); in populateFromPrivKeyInfo()
346 if (publicKey != null) in getEncoded()
348 … keyStructure = new org.bouncycastle.asn1.sec.ECPrivateKey(this.getS(), publicKey, params); in getEncoded()
DECUtil.java149 … PublicKey publicKey = BouncyCastleProvider.getPublicKey(SubjectPublicKeyInfo.getInstance(bytes)); in generatePublicKeyParameter() local
151 if (publicKey instanceof java.security.interfaces.ECPublicKey) in generatePublicKeyParameter()
153 return ECUtil.generatePublicKeyParameter(publicKey); in generatePublicKeyParameter()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/sec/
DECPrivateKey.java72 DERBitString publicKey, in ECPrivateKey() argument
87 if (publicKey != null) in ECPrivateKey()
89 v.add(new DERTaggedObject(true, 1, publicKey)); in ECPrivateKey()
DECPrivateKeyStructure.java57 DERBitString publicKey, in ECPrivateKeyStructure() argument
72 if (publicKey != null) in ECPrivateKeyStructure()
74 v.add(new DERTaggedObject(true, 1, publicKey)); in ECPrivateKeyStructure()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DDigestSignatureSpi.java77 PublicKey publicKey) in engineInitVerify() argument
80 if (!(publicKey instanceof RSAPublicKey)) in engineInitVerify()
82 …throw new InvalidKeyException("Supplied key (" + getType(publicKey) + ") is not a RSAPublicKey ins… in engineInitVerify()
85 CipherParameters param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)publicKey); in engineInitVerify()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
DKeyPairTest.java48 PublicKeyStub publicKey = new PublicKeyStub("publicAlgorithm", in setUp() local
51 keyPair = new KeyPair(publicKey, privateKey); in setUp()
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/
DDigitalSignatureTest.java82 final PublicKey publicKey = keyFactory in test_Sign() local
91 return publicKey; in test_Sign()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DSignerTest.java102 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); in testGetPrivateKey() local
103 KeyPair kp = new KeyPair(publicKey, privateKey); in testGetPrivateKey()
DKeyFactory2Test.java151 PublicKey publicKey = fact.generatePublic(publicKeySpec); in test_generatePublicLjava_security_spec_KeySpec() local
153 .getEncoded(), publicKey.getEncoded()); in test_generatePublicLjava_security_spec_KeySpec()
263 PublicKey publicKey = fact.generatePublic(publicKeySpec); in test_getKeySpecLjava_security_KeyLjava_lang_Class() local
265 .getEncoded(), publicKey.getEncoded()); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/
DX509CRLImplTest.java175 private static PublicKey publicKey; field in X509CRLImplTest
183 publicKey = keyPair.getPublic();
465 crl.verify(publicKey); in testVerify1()
472 crl.verify(publicKey, Signature.getInstance("SHA1withDSA") in testVerify2()
481 crl.verify(publicKey); in testVerify3()
DX509CertFactoryPerfTest.java81 static PublicKey publicKey; field in X509CertFactoryPerfTest
156 publicKey = keyPair.getPublic();
249 SubjectPublicKeyInfo.ASN1.decode(publicKey.getEncoded());
803 certificate.verify(publicKey); in testVerify1()
811 certificate.verify(publicKey, in testVerify2()
822 certificate.verify(publicKey); in testVerify3()
DX509CertImplTest.java106 static PublicKey publicKey; field in X509CertImplTest
182 publicKey = keyPair.getPublic();
275 SubjectPublicKeyInfo.ASN1.decode(publicKey.getEncoded()); in setUp()
736 certificate.verify(publicKey); in testVerify1()
744 certificate.verify(publicKey, Signature.getInstance("SHA1withDSA") in testVerify2()
754 certificate.verify(publicKey); in testVerify3()
/external/openssl/crypto/ec/
Dec_asn1.c194 ASN1_BIT_STRING *publicKey; member
268 ASN1_EXP_OPT(EC_PRIVATEKEY, publicKey, ASN1_BIT_STRING, 1)
1184 if (priv_key->publicKey) in d2i_ECPrivateKey()
1197 pub_oct = M_ASN1_STRING_data(priv_key->publicKey); in d2i_ECPrivateKey()
1198 pub_oct_len = M_ASN1_STRING_length(priv_key->publicKey); in d2i_ECPrivateKey()
1280 priv_key->publicKey = M_ASN1_BIT_STRING_new(); in i2d_ECPrivateKey()
1281 if (priv_key->publicKey == NULL) in i2d_ECPrivateKey()
1310 priv_key->publicKey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); in i2d_ECPrivateKey()
1311 priv_key->publicKey->flags |= ASN1_STRING_FLAG_BITS_LEFT; in i2d_ECPrivateKey()
1312 if (!M_ASN1_BIT_STRING_set(priv_key->publicKey, buffer, in i2d_ECPrivateKey()

12