/external/chromium_org/chrome/browser/chromeos/settings/ |
session_manager_operation_unittest.cc | 59 ASSERT_TRUE(op->owner_key()->public_key()); 60 std::vector<uint8> public_key; local 61 ASSERT_TRUE(policy_.GetSigningKey()->ExportPublicKey(&public_key)); 62 EXPECT_EQ(public_key, *op->owner_key()->public_key()); 105 EXPECT_FALSE(op.owner_key()->public_key()); 176 EXPECT_TRUE(op.owner_key()->public_key()); 264 std::vector<uint8> public_key; local 265 policy_.GetSigningKey()->ExportPublicKey(&public_key); 266 validator->ValidateSignature(public_key, false) [all...] |
session_manager_operation.cc | 74 if (force_key_load_ || !owner_key_.get() || !owner_key_->public_key()) { 95 scoped_ptr<std::vector<uint8> > public_key; local 100 if (current_key->public_key()) 101 public_key.reset(new std::vector<uint8>(*current_key->public_key())); 106 if (!public_key.get() && util->IsPublicKeyPresent()) { 107 public_key.reset(new std::vector<uint8>()); 108 if (!util->ImportPublicKey(public_key.get())) 112 if (public_key.get() && !private_key.get()) { 113 private_key.reset(util->FindPrivateKey(*public_key)); [all...] |
owner_key_util_unittest.cc | 71 std::vector<uint8> public_key(kTestKeyData, 73 ASSERT_EQ(static_cast<int>(public_key.size()), 76 reinterpret_cast<const char*>(vector_as_array(&public_key)), 77 public_key.size())); 83 EXPECT_EQ(public_key, from_disk);
|
/external/chromium_org/net/cert/ |
ct_log_verifier_nss.cc | 71 bool CTLogVerifier::Init(const base::StringPiece& public_key, 78 const_cast<char*>(public_key.data())); 79 key_data.len = public_key.size(); 96 key_id_ = crypto::SHA256HashString(public_key);
|
ct_log_verifier_openssl.cc | 53 bool CTLogVerifier::Init(const base::StringPiece& public_key, 58 BIO_new_mem_buf(const_cast<char*>(public_key.data()), public_key.size())); 66 key_id_ = crypto::SHA256HashString(public_key);
|
cert_database_openssl.cc | 43 crypto::ScopedOpenSSL<EVP_PKEY, EVP_PKEY_free> public_key( 46 if (!OpenSSLPrivateKeyStore::HasPrivateKey(public_key.get()))
|
/external/chromium_org/net/ssl/ |
openssl_client_key_store.h | 56 // Given a certificate's |public_key|, return the corresponding private 89 EVP_PKEY* public_key; member in class:net::OpenSSLClientKeyStore::KeyPair 96 // Returns the index of the keypair for |public_key|. or -1 if not found. 97 int FindKeyPairIndex(EVP_PKEY* public_key);
|
/external/chromium_org/remoting/base/ |
rsa_key_pair.cc | 71 std::vector<uint8> public_key; local 72 CHECK(key_->ExportPublicKey(&public_key)); 73 std::string public_key_str(public_key.begin(), public_key.end());
|
/external/chromium_org/chrome/browser/extensions/ |
extension_creator.cc | 98 std::string public_key; local 99 public_key.insert(public_key.begin(), 102 std::string extension_id = id_util::GenerateId(public_key); 250 std::vector<uint8> public_key; local 251 CHECK(private_key->ExportPublicKey(&public_key)); 255 CrxFile::Create(public_key.size(), signature.size(), &error)); 264 if (fwrite(&public_key.front(), sizeof(uint8), public_key.size(), 265 crx_handle.get()) != public_key.size()) [all...] |
/external/chromium_org/crypto/ |
curve25519.h | 37 // ScalarBaseMult computes the |public_key| from |private_key|. This method is a 42 CRYPTO_EXPORT void ScalarBaseMult(const uint8* private_key, uint8* public_key);
|
ec_private_key_nss.cc | 151 SECKEYPublicKey** public_key) { 155 *public_key = SECKEY_ExtractPublicKey(decoded_spki); 157 if (!*public_key) { 179 SECKEY_DestroyPublicKey(*public_key); 180 *public_key = NULL; 195 &(*public_key)->u.ec.publicValue, 203 SECKEY_DestroyPublicKey(*public_key); 204 *public_key = NULL;
|
signature_verifier_openssl.cc | 143 ScopedOpenSSL<EVP_PKEY, EVP_PKEY_free> public_key( 145 if (!public_key.get()) 150 digest, NULL, public_key.get());
|
/external/chromium_org/content/renderer/webcrypto/ |
webcrypto_impl_unittest.cc | 165 blink::WebCryptoKey* public_key, 168 algorithm, extractable, usage_mask, public_key, private_key); 1282 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1395 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1509 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1577 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
x_pubkey.c | 85 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING) 145 if (key->public_key == NULL) goto error; 359 if (pub->public_key->data) 360 OPENSSL_free(pub->public_key->data); 361 pub->public_key->data = penc; 362 pub->public_key->length = penclen; 364 pub->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); 365 pub->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; 379 *pk = pub->public_key->data; 380 *ppklen = pub->public_key->length [all...] |
/external/openssl/crypto/asn1/ |
x_pubkey.c | 85 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING) 145 if (key->public_key == NULL) goto error; 359 if (pub->public_key->data) 360 OPENSSL_free(pub->public_key->data); 361 pub->public_key->data = penc; 362 pub->public_key->length = penclen; 364 pub->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); 365 pub->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; 379 *pk = pub->public_key->data; 380 *ppklen = pub->public_key->length [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_creator.cc | 196 std::vector<uint8> public_key; local 197 if (!private_key->ExportPublicKey(&public_key)) { 207 header.key_size = public_key.size(); 214 if (fwrite(&public_key.front(), sizeof(uint8), public_key.size(), 215 crx_handle.get()) != public_key.size()) { 216 PLOG(ERROR) << "fwrite failed to write public_key.front";
|
/external/chromium/net/base/ |
keygen_handler_mac.cc | 106 SecKeyRef public_key = NULL; local 129 &public_key, &private_key); 135 err = SecKeychainItemExport(public_key, kSecFormatBSAFE, 0, NULL, 201 if (public_key) 202 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(public_key)); 213 if (public_key) 214 CFRelease(public_key);
|
/external/chromium_org/net/base/ |
keygen_handler_mac.cc | 107 SecKeyRef public_key = NULL; local 130 &public_key, &private_key); 136 err = SecKeychainItemExport(public_key, kSecFormatBSAFE, 0, NULL, 202 if (public_key) 203 SecKeychainItemDelete(reinterpret_cast<SecKeychainItemRef>(public_key)); 214 if (public_key) 215 CFRelease(public_key);
|
/external/chromium_org/chrome/browser/extensions/api/networking_private/ |
networking_private_crypto.cc | 139 crypto::ScopedSECKEYPublicKey public_key(CERT_ExtractPublicKey(cert.get())); 140 if (!public_key.get()) { 151 public_key.get(), &signature_item, SEC_OID_PKCS1_RSA_ENCRYPTION, 171 crypto::ScopedSECKEYPublicKey public_key(SECKEY_ImportDERPublicKey( 173 if (!public_key.get()) { 178 size_t encrypted_length = SECKEY_PublicKeyStrength(public_key.get()); 188 public_key.get(), 217 if (!private_key || !private_key->public_key()) { 222 size_t encrypted_length = SECKEY_SignatureLen(private_key->public_key());
|
networking_private_crypto_unittest.cc | 146 std::string public_key; local 147 base::Base64Decode(kPublicKey, &public_key); 154 EXPECT_TRUE(crypto.EncryptByteString(public_key, plain, &encrypted_output)); 159 EXPECT_TRUE(crypto.EncryptByteString(public_key, plain, &encrypted_output)); 163 crypto.EncryptByteString(public_key,
|
/external/chromium_org/remoting/host/setup/ |
service_client.cc | 33 const std::string& public_key, 72 const std::string& public_key, 81 post_body.SetString("data.publicKey", public_key); 181 const std::string& public_key, 185 return core_->RegisterHost(host_id, host_name, public_key, host_client_id,
|
/external/chromium/chrome/browser/chromeos/login/ |
owner_key_utils.h | 53 // |public_key| 57 const std::vector<uint8> public_key) = 0;
|
owner_key_utils.cc | 47 const std::vector<uint8> public_key); 136 const std::vector<uint8> public_key) { 140 &public_key[0], public_key.size())) {
|
/external/chromium_org/net/android/ |
network_library.cc | 57 bool StoreKeyPair(const uint8* public_key, 63 ToJavaByteArray(env, public_key, public_len);
|
/bootable/recovery/ |
verifier.h | 24 RSAPublicKey* public_key; member in struct:Certificate
|