/external/chromium_org/net/cert/ |
D | jwk_serializer_nss.cc | 23 CERTSubjectPublicKeyInfo* spki, in ConvertEcPrime256v1PublicKeyInfoToJwk() argument 29 if (spki->subjectPublicKey.len != (kPrime256v1PublicKeyLength + 1) * 8 || in ConvertEcPrime256v1PublicKeyInfoToJwk() 30 spki->subjectPublicKey.data[0] != kUncompressedEncodingType) in ConvertEcPrime256v1PublicKeyInfoToJwk() 37 reinterpret_cast<char*>(spki->subjectPublicKey.data + 1), in ConvertEcPrime256v1PublicKeyInfoToJwk() 44 reinterpret_cast<char*>(spki->subjectPublicKey.data + 1 + in ConvertEcPrime256v1PublicKeyInfoToJwk() 54 CERTSubjectPublicKeyInfo* spki, in ConvertEcPublicKeyInfoToJwk() argument 63 if (spki->algorithm.parameters.len == sizeof(kPrime256v1) && in ConvertEcPublicKeyInfoToJwk() 64 !memcmp(spki->algorithm.parameters.data, kPrime256v1, in ConvertEcPublicKeyInfoToJwk() 66 return ConvertEcPrime256v1PublicKeyInfoToJwk(spki, public_key_jwk); in ConvertEcPublicKeyInfoToJwk() 94 ScopedCERTSubjectPublicKeyInfo spki( in ConvertSpkiFromDerToJwk() local [all …]
|
D | jwk_serializer_unittest.cc | 64 base::StringPiece spki; in TEST() local 67 EXPECT_FALSE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); in TEST() 71 spki.set(reinterpret_cast<const char*>(kSpkiEc), sizeof(kSpkiEc)); in TEST() 72 EXPECT_TRUE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); in TEST() 99 spki.set(reinterpret_cast<const char*>(kSpkiEcWithLeadingZero), in TEST() 101 EXPECT_TRUE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); in TEST()
|
D | sha256_legacy_support_win.cc | 173 CERTSubjectPublicKeyInfo* spki = in CryptVerifyCertificateSignatureExHook() local 176 if (!spki) { in CryptVerifyCertificateSignatureExHook() 184 &signed_data, spki, NULL); in CryptVerifyCertificateSignatureExHook() 185 SECKEY_DestroySubjectPublicKeyInfo(spki); in CryptVerifyCertificateSignatureExHook()
|
D | crl_set.cc | 95 const std::string spki(reinterpret_cast<const char*>(issuer_spki->data), in ForTesting() 97 crl_set->crls_.push_back(make_pair(spki, std::vector<std::string>())); in ForTesting() 98 crl_set->crls_index_by_issuer_[spki] = 0; in ForTesting()
|
D | x509_util_openssl_unittest.cc | 135 std::vector<uint8> spki; in TEST() local 136 ASSERT_TRUE(private_key->ExportPublicKey(&spki)); in TEST() 137 VerifyCertificateSignature(der_cert, spki); in TEST()
|
D | x509_util_nss_unittest.cc | 164 std::vector<uint8> spki; in TEST() local 165 ASSERT_TRUE(private_key->ExportPublicKey(&spki)); in TEST() 166 VerifyCertificateSignature(der_cert, spki); in TEST()
|
/external/openssl/crypto/asn1/ |
D | t_spki.c | 73 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/ |
D | spkac.c | 94 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 …]
|
/external/openssl/crypto/x509/ |
D | x509spki.c | 83 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()
|
/external/chromium_org/net/base/ |
D | keygen_handler_openssl.cc | 26 crypto::ScopedOpenSSL<NETSCAPE_SPKI, NETSCAPE_SPKI_free>::Type spki( in GenKeyAndSignChallenge() local 28 ASN1_STRING_set(spki.get()->spkac->challenge, in GenKeyAndSignChallenge() 30 NETSCAPE_SPKI_set_pubkey(spki.get(), pkey); in GenKeyAndSignChallenge() 33 NETSCAPE_SPKI_sign(spki.get(), pkey, EVP_md5()); in GenKeyAndSignChallenge() 34 char* spkistr = NETSCAPE_SPKI_b64_encode(spki.get()); in GenKeyAndSignChallenge()
|
D | keygen_handler_mac.cc | 30 CSSM_X509_SUBJECT_PUBLIC_KEY_INFO spki; member 49 offsetof(PublicKeyAndChallenge, spki), 154 spkac.pkac.spki.algorithm.algorithm = CSSMOID_RSA; in GenKeyAndSignChallenge() 155 spkac.pkac.spki.subjectPublicKey.Length = in GenKeyAndSignChallenge() 157 spkac.pkac.spki.subjectPublicKey.Data = in GenKeyAndSignChallenge()
|
D | keygen_handler_win.cc | 69 std::vector<BYTE> spki; in GetSignedPublicKeyAndChallenge() local 71 if (!GetSubjectPublicKeyInfo(prov, &spki)) in GetSignedPublicKeyAndChallenge() 81 *reinterpret_cast<PCERT_PUBLIC_KEY_INFO>(&spki[0]); in GetSignedPublicKeyAndChallenge()
|
/external/chromium_org/third_party/boringssl/src/crypto/x509/ |
D | x509spki.c | 81 NETSCAPE_SPKI *spki; in NETSCAPE_SPKI_b64_decode() local 98 spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); in NETSCAPE_SPKI_b64_decode() 100 return spki; in NETSCAPE_SPKI_b64_decode() 105 char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) in NETSCAPE_SPKI_b64_encode() argument 111 der_len = i2d_NETSCAPE_SPKI(spki, NULL); in NETSCAPE_SPKI_b64_encode() 129 i2d_NETSCAPE_SPKI(spki, &p); in NETSCAPE_SPKI_b64_encode()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | SubjectKeyIdentifier.java | 82 SubjectPublicKeyInfo spki) in SubjectKeyIdentifier() argument 84 this.keyidentifier = getDigest(spki); in SubjectKeyIdentifier() 127 private static byte[] getDigest(SubjectPublicKeyInfo spki) in getDigest() argument 134 byte[] bytes = spki.getPublicKeyData().getBytes(); in getDigest()
|
D | AuthorityKeyIdentifier.java | 109 SubjectPublicKeyInfo spki) in AuthorityKeyIdentifier() argument 116 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier() 127 SubjectPublicKeyInfo spki, in AuthorityKeyIdentifier() argument 136 byte[] bytes = spki.getPublicKeyData().getBytes(); in AuthorityKeyIdentifier()
|
/external/chromium_org/chrome/renderer/resources/extensions/enterprise_platform_keys/ |
D | key.js | 37 this.spki = publicKeySpki; 67 if (!keyImpl || !keyImpl.spki) 69 return keyImpl.spki;
|
D | subtle_crypto.js | 119 function(spki) { argument 126 resolve(new KeyPair(spki, normalizedAlgorithmParameters, keyUsages));
|
/external/chromium_org/crypto/ |
D | signature_verifier_nss.cc | 197 CERTSubjectPublicKeyInfo* spki = NULL; in DecodePublicKeyInfo() local 202 spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&spki_der); in DecodePublicKeyInfo() 203 if (!spki) in DecodePublicKeyInfo() 205 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); in DecodePublicKeyInfo() 206 SECKEY_DestroySubjectPublicKeyInfo(spki); // Done with spki. in DecodePublicKeyInfo()
|
D | rsa_private_key_nss.cc | 43 inline void operator()(CERTSubjectPublicKeyInfo* spki) { in operator ()() 44 SECKEY_DestroySubjectPublicKeyInfo(spki); in operator ()() 59 ScopedPublicKeyInfo spki(SECKEY_DecodeDERSubjectPublicKeyInfo(&key_der)); in GetRSAPublicKey() local 60 if (!spki) in GetRSAPublicKey() 63 crypto::ScopedSECKEYPublicKey result(SECKEY_ExtractPublicKey(spki.get())); in GetRSAPublicKey()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/pkcs10/ |
D | CertificationRequestInfoTest.java | 47 SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo( in testCertificationRequestInfo() local 55 version, subject, spki, attributes); in testCertificationRequestInfo() 61 assertTrue(Arrays.equals(spki.getEncoded(), certReqInfo in testCertificationRequestInfo()
|
D | CertificationRequestTest.java | 46 SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo( in testCertificationRequest() local 53 version, subject, spki, attributes); in testCertificationRequest()
|
/external/chromium_org/net/quic/crypto/ |
D | proof_verifier_chromium.cc | 268 StringPiece spki; in VerifySignature() local 269 if (!asn1::ExtractSPKIFromDERCert(cert, &spki)) { in VerifySignature() 289 reinterpret_cast<const uint8*>(spki.data()), spki.size()); in VerifySignature() 317 reinterpret_cast<const uint8*>(spki.data()), in VerifySignature() 318 spki.size())) { in VerifySignature()
|
/external/chromium_org/chrome/browser/extensions/api/messaging/ |
D | message_property_provider.cc | 92 base::StringPiece spki; in GotChannelID() local 93 if (!net::asn1::ExtractSPKIFromDERCert(output->domain_bound_cert, &spki)) { in GotChannelID() 98 if (!net::JwkSerializer::ConvertSpkiFromDerToJwk(spki, &jwk_value)) { in GotChannelID()
|
/external/chromium_org/third_party/webrtc/base/ |
D | nssidentity.cc | 338 CERTSubjectPublicKeyInfo *spki = NULL; in GenerateInternal() local 366 spki = SECKEY_CreateSubjectPublicKeyInfo(keypair->pubkey()); in GenerateInternal() 367 if (!spki) { in GenerateInternal() 372 certreq = CERT_CreateCertificateRequest(subject_name, spki, NULL); in GenerateInternal() 433 if (spki) SECKEY_DestroySubjectPublicKeyInfo(spki); in GenerateInternal()
|
/external/chromium_org/net/data/ssl/scripts/ |
D | crlsetutil.py | 182 for spki, serials in sorted(parents.iteritems()): 183 outfile.write(spki)
|