/external/chromium/crypto/ |
H A D | rsa_private_key_nss_unittest.cc | 35 std::vector<uint8> public_key; local 36 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); 39 crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key)); 48 std::vector<uint8> public_key; local 49 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); 61 EXPECT_EQ(NULL, crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key));
|
H A D | signature_verifier_openssl.cc | 20 ScopedOpenSSL<EVP_PKEY, EVP_PKEY_free> public_key; member in struct:crypto::SignatureVerifier::VerifyContext 59 verify_context_->public_key.reset(d2i_PUBKEY_bio(bio.get(), NULL)); 60 if (!verify_context_->public_key.get()) 82 verify_context_->public_key.get());
|
/external/chromium_org/google_apis/cup/ |
H A D | client_update_protocol_openssl.cc | 11 bool ClientUpdateProtocol::LoadPublicKey(const base::StringPiece& public_key) { argument
|
H A D | client_update_protocol_nss.cc | 26 bool ClientUpdateProtocol::LoadPublicKey(const base::StringPiece& public_key) { argument 29 // The binary blob |public_key| is expected to be a DER-encoded ASN.1 34 reinterpret_cast<unsigned char*>(const_cast<char*>(public_key.data())); 35 spki_item.len = static_cast<unsigned int>(public_key.size());
|
/external/chromium/chrome/common/remoting/ |
H A D | chromoting_host_info.h | 19 std::string public_key; member in struct:remoting::ChromotingHostInfo
|
/external/chromium_org/crypto/ |
H A D | curve25519.cc | 30 void ScalarBaseMult(const uint8* private_key, uint8* public_key) { argument 31 curve25519_donna(public_key, private_key, kBasePoint);
|
H A D | ec_private_key.h | 31 // (The difference in types of key() and public_key() make this a little 75 // Imports the key pair into |slot| and returns in |public_key| and |key|. 88 SECKEYPublicKey** public_key); 95 SECKEYPublicKey* public_key() { return public_key_; } function in class:crypto::ECPrivateKey
|
H A D | rsa_private_key_nss_unittest.cc | 58 std::vector<uint8> public_key; local 59 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); 62 crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key)); 71 std::vector<uint8> public_key; local 72 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); 84 EXPECT_EQ(NULL, crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key));
|
/external/chromium_org/net/base/ |
H A D | openssl_private_key_store_android.cc | 25 unsigned char* public_key = NULL; local 26 int public_len = i2d_PUBKEY(pkey, &public_key); 41 static_cast<const uint8*>(public_key), public_len, 46 OPENSSL_free(public_key);
|
/external/chromium_org/net/cert/ |
H A D | ct_log_verifier.cc | 14 const base::StringPiece& public_key, 17 if (!result->Init(public_key, description)) 13 Create( const base::StringPiece& public_key, const base::StringPiece& description) argument
|
H A D | ct_log_verifier_openssl.cc | 53 bool CTLogVerifier::Init(const base::StringPiece& public_key, argument 58 BIO_new_mem_buf(const_cast<char*>(public_key.data()), public_key.size())); 66 key_id_ = crypto::SHA256HashString(public_key);
|
H A D | ct_log_verifier_nss.cc | 71 bool CTLogVerifier::Init(const base::StringPiece& public_key, argument 78 const_cast<char*>(public_key.data())); 79 key_data.len = public_key.size(); 96 key_id_ = crypto::SHA256HashString(public_key);
|
/external/dropbear/libtomcrypt/src/pk/dsa/ |
H A D | dsa_shared_secret.c | 24 @param public_key The public key 30 dsa_key *public_key, 38 LTC_ARGCHK(public_key != NULL); 47 if ((err = mp_exptmod(base, private_key, public_key->p, res)) != CRYPT_OK) { 29 dsa_shared_secret(void *private_key, void *base, dsa_key *public_key, unsigned char *out, unsigned long *outlen) argument
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
H A D | ecc_shared_secret.c | 29 @param public_key The public key 34 int ecc_shared_secret(ecc_key *private_key, ecc_key *public_key, argument 43 LTC_ARGCHK(public_key != NULL); 52 if (ltc_ecc_is_valid_idx(private_key->idx) == 0 || ltc_ecc_is_valid_idx(public_key->idx) == 0) { 56 if (XSTRCMP(private_key->dp->name, public_key->dp->name) != 0) { 72 if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) { goto done; }
|
/external/chromium/chrome/browser/chromeos/login/ |
H A D | owner_key_utils_unittest.cc | 54 std::vector<uint8> public_key; local 55 ASSERT_TRUE(pair->ExportPublicKey(&public_key)); 61 for (pubkey_it = public_key.begin(), disk_it = from_disk.begin(); 62 pubkey_it < public_key.end();
|
/external/chromium_org/net/quic/crypto/ |
H A D | channel_id_nss.cc | 32 SECKEYPublicKey public_key; local 33 memset(&public_key, 0, sizeof(public_key)); 40 public_key.keyType = ecKey; 41 public_key.u.ec.DEREncodedParams.type = siBuffer; 42 public_key.u.ec.DEREncodedParams.data = const_cast<unsigned char*>(p256_oid); 43 public_key.u.ec.DEREncodedParams.len = sizeof(p256_oid); 48 public_key.u.ec.publicValue.type = siBuffer; 49 public_key.u.ec.publicValue.data = key_buf; 50 public_key [all...] |
H A D | p256_key_exchange_openssl.cc | 18 P256KeyExchange::P256KeyExchange(EC_KEY* private_key, const uint8* public_key) argument 20 memcpy(public_key_, public_key, sizeof(public_key_)); 40 uint8 public_key[kUncompressedP256PointBytes]; local 43 POINT_CONVERSION_UNCOMPRESSED, public_key, 44 sizeof(public_key), NULL) != sizeof(public_key)) { 49 return new P256KeyExchange(private_key.release(), public_key);
|
/external/chromium_org/net/ssl/ |
H A D | 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/chrome/browser/chromeos/settings/ |
H A D | 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, fals [all...] |
/external/chromium_org/chromeos/dbus/ |
H A D | shill_manager_client.h | 86 std::string public_key; member in struct:chromeos::ShillManagerClient::VerificationProperties 183 // by the given |service_path|, encrypted using the |public_key| for the 192 // |data| encrypted using the |public_key| for the trusted device. If the
|
/external/chromium_org/components/policy/core/common/cloud/ |
H A D | cloud_policy_validator_unittest.cc | 61 std::vector<uint8> public_key; local 63 PolicyBuilder::CreateTestSigningKey()->ExportPublicKey(&public_key)); 75 validator->ValidateSignature(public_key, allow_key_rotation_);
|
/external/chromium_org/remoting/base/ |
H A D | 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/chrome/browser/extensions/ |
H A D | 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_org/chrome/app/ |
H A D | signature_validator_win_unittest.cc | 79 uint8* public_key = blob.pbData; local 83 base::StringPiece key_bytes(reinterpret_cast<char*>(public_key),
|
/external/chromium_org/chrome/browser/component_updater/ |
H A D | component_unpacker.cc | 82 const std::vector<uint8>& public_key() const { return public_key_; } function in class:__anon4819::CRXValidator 142 sha256->Update(&(validator.public_key()[0]), validator.public_key().size());
|