/external/chromium_org/net/cert/ |
H A D | jwk_serializer_unittest.cc | 67 base::StringPiece spki; local 70 EXPECT_FALSE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); 74 spki.set(reinterpret_cast<const char*>(kSpkiEc), sizeof(kSpkiEc)); 75 EXPECT_TRUE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); 102 spki.set(reinterpret_cast<const char*>(kSpkiEcWithZeroXY), 104 EXPECT_TRUE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); 134 base::StringPiece spki; local 138 EXPECT_FALSE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); 142 spki.set(reinterpret_cast<const char*>(kSpkiEc), sizeof(kSpkiEc)); 143 EXPECT_FALSE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, [all...] |
H A D | jwk_serializer_nss.cc | 23 CERTSubjectPublicKeyInfo* spki, 29 if (spki->subjectPublicKey.len != (kPrime256v1PublicKeyLength + 1) * 8 || 30 spki->subjectPublicKey.data[0] != kUncompressedEncodingType) 37 reinterpret_cast<char*>(spki->subjectPublicKey.data + 1), 44 reinterpret_cast<char*>(spki->subjectPublicKey.data + 1 + 54 CERTSubjectPublicKeyInfo* spki, 63 if (spki->algorithm.parameters.len == sizeof(kPrime256v1) && 64 !memcmp(spki->algorithm.parameters.data, kPrime256v1, 66 return ConvertEcPrime256v1PublicKeyInfoToJwk(spki, public_key_jwk); 94 ScopedCERTSubjectPublicKeyInfo spki( 22 ConvertEcPrime256v1PublicKeyInfoToJwk( CERTSubjectPublicKeyInfo* spki, base::DictionaryValue* public_key_jwk) argument 53 ConvertEcPublicKeyInfoToJwk( CERTSubjectPublicKeyInfo* spki, base::DictionaryValue* public_key_jwk) argument [all...] |
H A D | x509_util_openssl_unittest.cc | 135 std::vector<uint8> spki; local 136 ASSERT_TRUE(private_key->ExportPublicKey(&spki)); 137 VerifyCertificateSignature(der_cert, spki);
|
H A D | asn1_util.cc | 160 bool ExtractSubjectPublicKeyFromSPKI(base::StringPiece spki, argument 173 if (!asn1::GetElement(&spki, asn1::kSEQUENCE, &spki_contents))
|
H A D | x509_util_nss_unittest.cc | 164 std::vector<uint8> spki; local 165 ASSERT_TRUE(private_key->ExportPublicKey(&spki)); 166 VerifyCertificateSignature(der_cert, spki);
|
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
H A D | t_spki.c | 73 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki) argument 80 i=OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm); 83 pkey = X509_PUBKEY_get(spki->spkac->pubkey); 90 chal = spki->spkac->challenge; 93 i=OBJ_obj2nid(spki->sig_algor->algorithm); 97 n=spki->signature->length; 98 s=(char *)spki->signature->data;
|
/external/openssl/crypto/asn1/ |
H A D | t_spki.c | 73 int NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki) argument 80 i=OBJ_obj2nid(spki->spkac->pubkey->algor->algorithm); 83 pkey = X509_PUBKEY_get(spki->spkac->pubkey); 90 chal = spki->spkac->challenge; 93 i=OBJ_obj2nid(spki->sig_algor->algorithm); 97 n=spki->signature->length; 98 s=(char *)spki->signature->data;
|
/external/chromium_org/third_party/openssl/openssl/crypto/x509/ |
H A D | x509spki.c | 83 NETSCAPE_SPKI *spki; local 97 spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); 99 return spki; 104 char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) argument 109 der_len = i2d_NETSCAPE_SPKI(spki, NULL); 117 i2d_NETSCAPE_SPKI(spki, &p);
|
/external/openssl/crypto/x509/ |
H A D | x509spki.c | 83 NETSCAPE_SPKI *spki; local 97 spki = d2i_NETSCAPE_SPKI(NULL, &p, spki_len); 99 return spki; 104 char * NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *spki) argument 109 der_len = i2d_NETSCAPE_SPKI(spki, NULL); 117 i2d_NETSCAPE_SPKI(spki, &p);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
H A D | SubjectKeyIdentifier.java | 78 * @param spki the subject public key info. 82 SubjectPublicKeyInfo spki) 84 this.keyidentifier = getDigest(spki); 127 private static byte[] getDigest(SubjectPublicKeyInfo spki) argument 134 byte[] bytes = spki.getPublicKeyData().getBytes(); 81 SubjectKeyIdentifier( SubjectPublicKeyInfo spki) argument
|
H A D | AuthorityKeyIdentifier.java | 109 SubjectPublicKeyInfo spki) 116 byte[] bytes = spki.getPublicKeyData().getBytes(); 127 SubjectPublicKeyInfo spki, 136 byte[] bytes = spki.getPublicKeyData().getBytes(); 108 AuthorityKeyIdentifier( SubjectPublicKeyInfo spki) argument 126 AuthorityKeyIdentifier( SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber) argument
|
/external/chromium/crypto/ |
H A D | signature_verifier_nss.cc | 32 CERTSubjectPublicKeyInfo* spki = NULL; local 37 spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&spki_der); 38 if (!spki) 40 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); 41 SECKEY_DestroySubjectPublicKeyInfo(spki); // Done with spki.
|
H A D | rsa_private_key_nss.cc | 94 CERTSubjectPublicKeyInfo *spki = local 96 if (!spki) { 101 result->public_key_ = SECKEY_ExtractPublicKey(spki); 102 SECKEY_DestroySubjectPublicKeyInfo(spki);
|
/external/chromium_org/chrome/browser/extensions/api/messaging/ |
H A D | message_property_provider.cc | 92 base::StringPiece spki; local 93 if (!net::asn1::ExtractSPKIFromDERCert(output->domain_bound_cert, &spki)) { 98 if (!net::JwkSerializer::ConvertSpkiFromDerToJwk(spki, &jwk_value)) {
|
/external/chromium_org/third_party/openssl/openssl/apps/ |
H A D | spkac.c | 94 NETSCAPE_SPKI *spki = NULL; local 202 spki = NETSCAPE_SPKI_new(); 203 if(challenge) ASN1_STRING_set(spki->spkac->challenge, 205 NETSCAPE_SPKI_set_pubkey(spki, pkey); 206 NETSCAPE_SPKI_sign(spki, pkey, EVP_md5()); 207 spkstr = NETSCAPE_SPKI_b64_encode(spki); 259 spki = NETSCAPE_SPKI_b64_decode(spkstr, -1); 261 if(!spki) { 284 if(!noout) NETSCAPE_SPKI_print(out, spki); 285 pkey = NETSCAPE_SPKI_get_pubkey(spki); [all...] |
/external/openssl/apps/ |
H A D | spkac.c | 94 NETSCAPE_SPKI *spki = NULL; local 202 spki = NETSCAPE_SPKI_new(); 203 if(challenge) ASN1_STRING_set(spki->spkac->challenge, 205 NETSCAPE_SPKI_set_pubkey(spki, pkey); 206 NETSCAPE_SPKI_sign(spki, pkey, EVP_md5()); 207 spkstr = NETSCAPE_SPKI_b64_encode(spki); 259 spki = NETSCAPE_SPKI_b64_decode(spkstr, -1); 261 if(!spki) { 284 if(!noout) NETSCAPE_SPKI_print(out, spki); 285 pkey = NETSCAPE_SPKI_get_pubkey(spki); [all...] |
/external/chromium/net/base/ |
H A D | keygen_handler_mac.cc | 29 CSSM_X509_SUBJECT_PUBLIC_KEY_INFO spki; member in struct:net::PublicKeyAndChallenge 48 offsetof(PublicKeyAndChallenge, spki), 153 spkac.pkac.spki.algorithm.algorithm = CSSMOID_RSA; 154 spkac.pkac.spki.subjectPublicKey.Length = 156 spkac.pkac.spki.subjectPublicKey.Data =
|
H A D | keygen_handler_win.cc | 68 std::vector<BYTE> spki; local 70 if (!GetSubjectPublicKeyInfo(prov, &spki)) 74 // spki SubjectPublicKeyInfo, 80 *reinterpret_cast<PCERT_PUBLIC_KEY_INFO>(&spki[0]);
|
H A D | dnssec_keyset.cc | 204 CERTSubjectPublicKeyInfo* spki = NULL; local 209 spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&spki_der); 210 if (!spki) 212 SECKEYPublicKey* pub_key = SECKEY_ExtractPublicKey(spki); 213 SECKEY_DestroySubjectPublicKeyInfo(spki); // Done with spki.
|
/external/chromium_org/crypto/ |
H A D | rsa_private_key_nss.cc | 125 CERTSubjectPublicKeyInfo* spki = local 127 if (!spki) { 132 result->public_key_ = SECKEY_ExtractPublicKey(spki); 133 SECKEY_DestroySubjectPublicKeyInfo(spki);
|
H A D | signature_verifier_nss.cc | 197 CERTSubjectPublicKeyInfo* spki = NULL; local 202 spki = SECKEY_DecodeDERSubjectPublicKeyInfo(&spki_der); 203 if (!spki) 205 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); 206 SECKEY_DestroySubjectPublicKeyInfo(spki); // Done with spki.
|
/external/chromium_org/net/base/ |
H A D | keygen_handler_mac.cc | 30 CSSM_X509_SUBJECT_PUBLIC_KEY_INFO spki; member in struct:net::PublicKeyAndChallenge 49 offsetof(PublicKeyAndChallenge, spki), 154 spkac.pkac.spki.algorithm.algorithm = CSSMOID_RSA; 155 spkac.pkac.spki.subjectPublicKey.Length = 157 spkac.pkac.spki.subjectPublicKey.Data =
|
H A D | keygen_handler_win.cc | 68 std::vector<BYTE> spki; local 70 if (!GetSubjectPublicKeyInfo(prov, &spki)) 74 // spki SubjectPublicKeyInfo, 80 *reinterpret_cast<PCERT_PUBLIC_KEY_INFO>(&spki[0]);
|
/external/chromium_org/net/quic/crypto/ |
H A D | proof_verifier_chromium.cc | 182 StringPiece spki; local 183 if (!asn1::ExtractSPKIFromDERCert(cert, &spki)) { 203 reinterpret_cast<const uint8*>(spki.data()), spki.size()); 231 reinterpret_cast<const uint8*>(spki.data()), 232 spki.size())) {
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
H A D | nssidentity.cc | 307 CERTSubjectPublicKeyInfo *spki = NULL; local 333 spki = SECKEY_CreateSubjectPublicKeyInfo(keypair->pubkey()); 334 if (!spki) { 339 certreq = CERT_CreateCertificateRequest(subject_name, spki, NULL); 405 if (spki) SECKEY_DestroySubjectPublicKeyInfo(spki);
|