Home
last modified time | relevance | path

Searched refs:spki (Results 1 – 19 of 19) sorted by relevance

/external/openssl/crypto/asn1/
Dt_spki.c73 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki) in NETSCAPE_SPKI_print() argument
80 i=OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm); in NETSCAPE_SPKI_print()
83 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in NETSCAPE_SPKI_print()
90 chal = spki->spkac->challenge; in NETSCAPE_SPKI_print()
93 i=OBJ_obj2nid(spki->sig_algor->algorithm); in NETSCAPE_SPKI_print()
97 n=spki->signature->length; in NETSCAPE_SPKI_print()
98 s=(char *)spki->signature->data; in NETSCAPE_SPKI_print()
/external/openssl/apps/
Dspkac.c94 NETSCAPE_SPKI *spki = NULL; in MAIN() local
202 spki = NETSCAPE_SPKI_new(); in MAIN()
203 if(challenge) ASN1_STRING_set(spki->spkac->challenge, in MAIN()
205 NETSCAPE_SPKI_set_pubkey(spki, pkey); in MAIN()
206 NETSCAPE_SPKI_sign(spki, pkey, EVP_md5()); in MAIN()
207 spkstr = NETSCAPE_SPKI_b64_encode(spki); in MAIN()
259 spki = NETSCAPE_SPKI_b64_decode(spkstr, -1); in MAIN()
261 if(!spki) { in MAIN()
284 if(!noout) NETSCAPE_SPKI_print(out, spki); in MAIN()
285 pkey = NETSCAPE_SPKI_get_pubkey(spki); in MAIN()
[all …]
Dca.c2276 NETSCAPE_SPKI *spki = NULL; in certify_spkac() local
2349 spki = NETSCAPE_SPKI_b64_decode(cv->value, -1); in certify_spkac()
2350 if (spki == NULL) in certify_spkac()
2364 if (spki == NULL) in certify_spkac()
2377 if ((pktmp=NETSCAPE_SPKI_get_pubkey(spki)) == NULL) in certify_spkac()
2383 j = NETSCAPE_SPKI_verify(spki, pktmp); in certify_spkac()
2399 if (spki != NULL) NETSCAPE_SPKI_free(spki); in certify_spkac()
/external/openssl/crypto/x509/
Dx509spki.c83 NETSCAPE_SPKI *spki; in NETSCAPE_SPKI_b64_decode() local
97 spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); in NETSCAPE_SPKI_b64_decode()
99 return spki; in NETSCAPE_SPKI_b64_decode()
104 char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) in NETSCAPE_SPKI_b64_encode() argument
109 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode()
117 i2d_NETSCAPE_SPKI(spki, &p); in NETSCAPE_SPKI_b64_encode()
Dx509.h658 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);
/external/chromium/net/base/
Dkeygen_handler_openssl.cc25 crypto::ScopedOpenSSL<NETSCAPE_SPKI, NETSCAPE_SPKI_free> spki( in GenKeyAndSignChallenge() local
27 ASN1_STRING_set(spki.get()->spkac->challenge, in GenKeyAndSignChallenge()
29 NETSCAPE_SPKI_set_pubkey(spki.get(), pkey); in GenKeyAndSignChallenge()
32 NETSCAPE_SPKI_sign(spki.get(), pkey, EVP_md5()); in GenKeyAndSignChallenge()
33 char* spkistr = NETSCAPE_SPKI_b64_encode(spki.get()); in GenKeyAndSignChallenge()
Dkeygen_handler_mac.cc29 CSSM_X509_SUBJECT_PUBLIC_KEY_INFO spki; member
48 offsetof(PublicKeyAndChallenge, spki),
153 spkac.pkac.spki.algorithm.algorithm = CSSMOID_RSA; in GenKeyAndSignChallenge()
154 spkac.pkac.spki.subjectPublicKey.Length = in GenKeyAndSignChallenge()
156 spkac.pkac.spki.subjectPublicKey.Data = in GenKeyAndSignChallenge()
Ddnssec_keyset.cc204 CERTSubjectPublicKeyInfo* spki = NULL; in VerifySignature() local
209 spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&spki_der); in VerifySignature()
210 if (!spki) in VerifySignature()
212 SECKEYPublicKey* pub_key = SECKEY_ExtractPublicKey(spki); in VerifySignature()
213 SECKEY_DestroySubjectPublicKeyInfo(spki); // Done with spki. in VerifySignature()
Dkeygen_handler_win.cc68 std::vector<BYTE> spki; in GetSignedPublicKeyAndChallenge() local
70 if (!GetSubjectPublicKeyInfo(prov, &spki)) in GetSignedPublicKeyAndChallenge()
80 *reinterpret_cast<PCERT_PUBLIC_KEY_INFO>(&spki[0]); in GetSignedPublicKeyAndChallenge()
Dx509_certificate_nss.cc661 CERTSubjectPublicKeyInfo* spki = in CreateSelfSigned() local
663 if (!spki) in CreateSelfSigned()
670 CERT_CreateCertificateRequest(subject_name, spki, NULL); in CreateSelfSigned()
671 SECKEY_DestroySubjectPublicKeyInfo(spki); in CreateSelfSigned()
/external/chromium/crypto/
Dsignature_verifier_nss.cc32 CERTSubjectPublicKeyInfo* spki = NULL; in VerifyInit() local
37 spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&spki_der); in VerifyInit()
38 if (!spki) in VerifyInit()
40 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); in VerifyInit()
41 SECKEY_DestroySubjectPublicKeyInfo(spki); // Done with spki. in VerifyInit()
Drsa_private_key_nss.cc94 CERTSubjectPublicKeyInfo *spki = in FindFromPublicKeyInfo() local
96 if (!spki) { in FindFromPublicKeyInfo()
101 result->public_key_ = SECKEY_ExtractPublicKey(spki); in FindFromPublicKeyInfo()
102 SECKEY_DestroySubjectPublicKeyInfo(spki); in FindFromPublicKeyInfo()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DSubjectKeyIdentifier.java77 SubjectPublicKeyInfo spki) in SubjectKeyIdentifier() argument
79 this.keyidentifier = getDigest(spki); in SubjectKeyIdentifier()
122 private static byte[] getDigest(SubjectPublicKeyInfo spki) in getDigest() argument
129 byte[] bytes = spki.getPublicKeyData().getBytes(); in getDigest()
DAuthorityKeyIdentifier.java104 SubjectPublicKeyInfo spki) in AuthorityKeyIdentifier() argument
111 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
122 SubjectPublicKeyInfo spki, in AuthorityKeyIdentifier() argument
131 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/pkcs10/
DCertificationRequestInfoTest.java48 SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo( in testCertificationRequestInfo() local
56 version, subject, spki, attributes); in testCertificationRequestInfo()
62 assertTrue(Arrays.equals(spki.getEncoded(), certReqInfo in testCertificationRequestInfo()
DCertificationRequestTest.java48 SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo( in testCertificationRequest() local
55 version, subject, spki, attributes); in testCertificationRequest()
/external/chromium/net/socket/
Ddns_cert_provenance_checker.cc212 CERTSubjectPublicKeyInfo* spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&der); in GetServerPubKey() local
213 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); in GetServerPubKey()
214 SECKEY_DestroySubjectPublicKeyInfo(spki); in GetServerPubKey()
/external/openssl/include/openssl/
Dx509.h658 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);
/external/bouncycastle/patches/
Dbcprov.patch293 SubjectPublicKeyInfo spki)
301 byte[] bytes = spki.getPublicKeyData().getBytes();
312 byte[] bytes = spki.getPublicKeyData().getBytes();
418 private static byte[] getDigest(SubjectPublicKeyInfo spki)
426 byte[] bytes = spki.getPublicKeyData().getBytes();