Home
last modified time | relevance | path

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

/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/chromium/net/base/
Dkeygen_handler_nss.cc84 SECKEYPublicKey *publicKey = NULL; in GenKeyAndSignChallenge() local
138 &publicKey, in GenKeyAndSignChallenge()
154 spkInfo = SECKEY_CreateSubjectPublicKeyInfo(publicKey); in GenKeyAndSignChallenge()
233 if (publicKey) { in GenKeyAndSignChallenge()
234 PK11_DestroyTokenObject(publicKey->pkcs11Slot, publicKey->pkcs11ID); in GenKeyAndSignChallenge()
239 if (publicKey) { in GenKeyAndSignChallenge()
240 SECKEY_DestroyPublicKey(publicKey); in GenKeyAndSignChallenge()
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
DJDKDSASigner.java55 PublicKey publicKey) in engineInitVerify() argument
68 if (publicKey instanceof DSAKey) in engineInitVerify()
71 param = DSAUtil.generatePublicKeyParameter(publicKey); in engineInitVerify()
77 byte[] bytes = publicKey.getEncoded(); in engineInitVerify()
79 publicKey = JDKKeyFactory.createPublicKeyFromDERStream(bytes); in engineInitVerify()
81 if (publicKey instanceof DSAKey) in engineInitVerify()
83 param = DSAUtil.generatePublicKeyParameter(publicKey); in engineInitVerify()
DJDKDigestSignature.java76 PublicKey publicKey) in engineInitVerify() argument
79 if (!(publicKey instanceof RSAPublicKey)) in engineInitVerify()
81 …throw new InvalidKeyException("Supplied key (" + getType(publicKey) + ") is not a RSAPublicKey ins… in engineInitVerify()
84 CipherParameters param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)publicKey); in engineInitVerify()
DPKIXCertPathValidatorSpi.java89 private static boolean isPublicKeyBlackListed(PublicKey publicKey) { in isPublicKeyBlackListed() argument
90 byte[] encoded = publicKey.getEncoded(); in isPublicKeyBlackListed()
DCertPathValidatorUtilities.java1545 protected static void verifyX509Certificate(X509Certificate cert, PublicKey publicKey, in verifyX509Certificate() argument
1551 cert.verify(publicKey); in verifyX509Certificate()
1555 cert.verify(publicKey, sigProvider); in verifyX509Certificate()
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/
DSubjectPublicKeyInfo.java52 DEREncodable publicKey) in SubjectPublicKeyInfo() argument
54 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
60 byte[] publicKey) in SubjectPublicKeyInfo() argument
62 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
DObjectDigestInfo.java39 public final static int publicKey = 0; field in ObjectDigestInfo
/external/openssl/crypto/ec/
Dec_asn1.c195 ASN1_BIT_STRING *publicKey; member
269 ASN1_EXP_OPT(EC_PRIVATEKEY, publicKey, ASN1_BIT_STRING, 1)
1170 if (priv_key->publicKey) in d2i_ECPrivateKey()
1183 pub_oct = M_ASN1_STRING_data(priv_key->publicKey); in d2i_ECPrivateKey()
1184 pub_oct_len = M_ASN1_STRING_length(priv_key->publicKey); in d2i_ECPrivateKey()
1266 priv_key->publicKey = M_ASN1_BIT_STRING_new(); in i2d_ECPrivateKey()
1267 if (priv_key->publicKey == NULL) in i2d_ECPrivateKey()
1296 priv_key->publicKey->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); in i2d_ECPrivateKey()
1297 priv_key->publicKey->flags |= ASN1_STRING_FLAG_BITS_LEFT; in i2d_ECPrivateKey()
1298 if (!M_ASN1_BIT_STRING_set(priv_key->publicKey, buffer, in i2d_ECPrivateKey()
/external/bouncycastle/src/main/java/org/bouncycastle/x509/
DAttributeCertificateHolder.java365 case ObjectDigestInfo.publicKey: in match()
/external/bouncycastle/patches/
Dandroid.patch9866 - if (publicKey instanceof GOST3410Key)
9868 - param = GOST3410Util.generatePublicKeyParameter(publicKey);
9870 - else if (publicKey instanceof DSAKey)
9872 + // if (publicKey instanceof GOST3410Key)
9874 + // param = GOST3410Util.generatePublicKeyParameter(publicKey);
9876 + // else if (publicKey instanceof DSAKey)
9879 + if (publicKey instanceof DSAKey)
9882 param = DSAUtil.generatePublicKeyParameter(publicKey);
12014 + private static boolean isPublicKeyBlackListed(PublicKey publicKey) {
12015 + byte[] encoded = publicKey.getEncoded();