/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_nss.cc | 32 const uint8* public_key) 34 memcpy(public_key_, public_key, sizeof(public_key_)); 78 SECKEYPublicKey* public_key = key_pair->public_key(); local 79 if (public_key->keyType != ecKey || 80 public_key->u.ec.publicValue.len != kUncompressedP256PointBytes || 81 !public_key->u.ec.publicValue.data || 82 public_key->u.ec.publicValue.data[0] != kUncompressedECPointForm) { 94 if (public_key->u.ec.DEREncodedParams.len != oid_data->oid.len + 2 || 95 !public_key 31 P256KeyExchange(crypto::ECPrivateKey* key_pair, const uint8* public_key) argument 127 vector<uint8> public_key; local [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_)); 39 uint8 public_key[kUncompressedP256PointBytes]; local 42 POINT_CONVERSION_UNCOMPRESSED, public_key, 43 sizeof(public_key), NULL) != sizeof(public_key)) { 48 return new P256KeyExchange(private_key.release(), public_key);
|
H A D | p256_key_exchange.h | 61 // |public_key| consists of |kUncompressedP256PointBytes| bytes. 62 P256KeyExchange(EC_KEY* private_key, const uint8* public_key); 67 // |public_key| consists of |kUncompressedP256PointBytes| bytes. 68 P256KeyExchange(crypto::ECPrivateKey* key_pair, const uint8* public_key);
|
/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 | rsa_private_key_nss_unittest.cc | 31 std::vector<uint8> public_key; local 32 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); 35 crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key)); 44 std::vector<uint8> public_key; local 45 ASSERT_TRUE(key_pair->ExportPublicKey(&public_key)); 57 EXPECT_EQ(NULL, crypto::RSAPrivateKey::FindFromPublicKeyInfo(public_key));
|
H A D | 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);
|
H A D | signature_verifier_nss.cc | 32 SECStatus VerifyRSAPSS_End(SECKEYPublicKey* public_key, argument 42 unsigned int modulus_len = SECKEY_PublicKeyStrength(public_key); 48 SECStatus rv = PK11_PubEncryptRaw(public_key, &enc[0], 87 SECKEYPublicKey* public_key = DecodePublicKeyInfo(public_key_info, local 89 if (!public_key) 94 SECKEY_DestroyPublicKey(public_key); 108 SECKEY_DestroyPublicKey(public_key); 118 vfy_context_ = VFY_CreateContextWithAlgorithmID(public_key, &sig, 121 SECKEY_DestroyPublicKey(public_key); // Done with public_key 150 SECKEYPublicKey* public_key = DecodePublicKeyInfo(public_key_info, local [all...] |
/external/chromium_org/net/base/ |
H A D | openssl_private_key_store_android.cc | 26 unsigned char* public_key = NULL; local 27 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 | cert_database_openssl.cc | 43 crypto::ScopedEVP_PKEY public_key( 46 if (!OpenSSLPrivateKeyStore::HasPrivateKey(public_key.get()))
|
/external/chromium_org/net/ssl/ |
H A D | openssl_client_key_store.cc | 41 : public_key(EVP_PKEY_dup(pub_key)), 49 : public_key(EVP_PKEY_dup(other.public_key.get())), 56 crypto::ScopedEVP_PKEY public_key_tmp(EVP_PKEY_dup(other.public_key.get())); 58 public_key.reset(); 59 public_key = public_key_tmp.Pass(); 64 int OpenSSLClientKeyStore::FindKeyPairIndex(EVP_PKEY* public_key) { argument 65 if (!public_key) 68 if (EVP_PKEY_cmp(pairs_[n].public_key.get(), public_key) [all...] |
H A D | openssl_client_key_store.h | 49 // Given a certificate's |public_key|, return the corresponding private 79 crypto::ScopedEVP_PKEY public_key; member in class:net::OpenSSLClientKeyStore::KeyPair 86 // Returns the index of the keypair for |public_key|. or -1 if not found. 87 int FindKeyPairIndex(EVP_PKEY* public_key);
|
/external/chromium_org/chrome/browser/extensions/api/networking_private/ |
H A D | networking_private_credentials_getter.h | 38 const std::string& public_key,
|
H A D | networking_private_credentials_getter_mac.cc | 27 const std::string& public_key, 45 const std::string& public_key, 59 std::vector<uint8> public_key_data(public_key.begin(), public_key.end()); 43 Start( const std::string& network_guid, const std::string& public_key, const extensions::NetworkingPrivateServiceClient::CryptoVerify:: VerifyAndEncryptCredentialsCallback& callback) argument
|
H A D | networking_private_credentials_getter_win.cc | 24 explicit CredentialsGetterHostClient(const std::string& public_key); 54 const std::string& public_key) 55 : public_key_(public_key.begin(), public_key.end()) { 120 const std::string& public_key, 135 const std::string& public_key, 142 new CredentialsGetterHostClient(public_key), 53 CredentialsGetterHostClient( const std::string& public_key) argument 133 Start( const std::string& network_guid, const std::string& public_key, const extensions::NetworkingPrivateServiceClient::CryptoVerify:: VerifyAndEncryptCredentialsCallback& callback) argument
|
H A D | crypto_verify_impl.cc | 58 credentials_getter->Start(network_guid, credentials.public_key, callback); 71 std::vector<uint8> public_key_data(credentials.public_key.begin(), 72 credentials.public_key.end());
|
/external/chromium_org/chrome/browser/chromeos/ownership/ |
H A D | owner_settings_service_chromeos.cc | 62 scoped_refptr<PublicKey> public_key, 64 const base::Callback<void(const scoped_refptr<PublicKey>& public_key, 71 owner_key_util->FindPrivateKeyInSlot(public_key->data(), slot.get()))); 74 base::Bind(callback, public_key, private_key)); 80 const base::Callback<void(const scoped_refptr<PublicKey>& public_key, 84 scoped_refptr<PublicKey> public_key; local 89 base::Bind(callback, public_key, private_key)); 92 public_key = new PublicKey(); 93 public_key->data().swap(public_key_data); 98 public_key, 60 LoadPrivateKeyByPublicKey( const scoped_refptr<OwnerKeyUtil>& owner_key_util, scoped_refptr<PublicKey> public_key, const std::string& username_hash, const base::Callback<void(const scoped_refptr<PublicKey>& public_key, const scoped_refptr<PrivateKey>& private_key)>& callback) argument 77 LoadPrivateKey( const scoped_refptr<OwnerKeyUtil>& owner_key_util, const std::string username_hash, const base::Callback<void(const scoped_refptr<PublicKey>& public_key, const scoped_refptr<PrivateKey>& private_key)>& callback) argument 111 std::vector<uint8> public_key; local 268 ReloadKeypairImpl(const base::Callback< void(const scoped_refptr<PublicKey>& public_key, const scoped_refptr<PrivateKey>& private_key)>& callback) argument [all...] |
/external/chromium_org/chromeos/dbus/ |
H A D | fake_easy_unlock_client.h | 20 const std::string& public_key); 29 const std::string& public_key,
|
/external/chromium_org/chrome/browser/chromeos/login/easy_unlock/ |
H A D | easy_unlock_types.h | 27 std::string public_key; member in struct:chromeos::EasyUnlockDeviceKeyData
|
/external/chromium_org/chrome/common/extensions/api/networking_private/ |
H A D | networking_private_crypto_unittest.cc | 145 std::vector<uint8> public_key(public_key_string.begin(), 153 public_key, plain, &encrypted_output)); 159 public_key, plain, &encrypted_output)); 163 public_key, std::string(500, 'x'), &encrypted_output));
|
/external/chromium_org/content/child/webcrypto/test/ |
H A D | rsa_oaep_unittest.cc | 70 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 78 &public_key)); 90 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 98 &public_key)); 110 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 118 &public_key)); 131 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 139 &public_key)); 163 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 171 &public_key)); 213 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 259 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 326 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 390 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 400 &public_key, local 508 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 518 &public_key, local 602 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local [all...] |
H A D | rsa_ssa_unittest.cc | 543 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 548 algorithm, extractable, usage_mask, &public_key, &private_key)); 549 EXPECT_FALSE(public_key.isNull()); 551 EXPECT_EQ(blink::WebCryptoKeyTypePublic, public_key.type()); 554 public_key.algorithm().rsaHashedParams()->modulusLengthBits()); 558 public_key.algorithm().rsaHashedParams()->hash().id()); 561 EXPECT_TRUE(public_key.extractable()); 563 EXPECT_EQ(usage_mask, public_key.usages()); 571 ExportKey(blink::WebCryptoKeyFormatSpki, public_key, &public_key_spki)); 574 public_key 735 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 766 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 782 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 791 &public_key, local 917 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 926 &public_key, local 979 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1012 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1034 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1045 &public_key, local 1057 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local 1069 &public_key, local 1084 &public_key, local 1116 blink::WebCryptoKey public_key = blink::WebCryptoKey::createNull(); local [all...] |
/external/chromium_org/chrome/browser/chromeos/settings/ |
H A D | session_manager_operation_unittest.cc | 73 ASSERT_TRUE(op->public_key().get()); 74 ASSERT_TRUE(op->public_key()->is_loaded()); 75 std::vector<uint8> public_key; local 76 ASSERT_TRUE(policy_.GetSigningKey()->ExportPublicKey(&public_key)); 77 EXPECT_EQ(public_key, op->public_key()->data()); 112 ASSERT_TRUE(op.public_key().get()); 113 EXPECT_FALSE(op.public_key()->is_loaded()); 165 EXPECT_TRUE(op.public_key().get()); 166 EXPECT_TRUE(op.public_key() 255 std::vector<uint8> public_key; local [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/x509/ |
H A D | x_pubkey.c | 82 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING) 139 if (key->public_key == NULL) goto error; 347 if (pub->public_key->data) 348 OPENSSL_free(pub->public_key->data); 349 pub->public_key->data = penc; 350 pub->public_key->length = penclen; 352 pub->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); 353 pub->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT; 367 *pk = pub->public_key->data; 368 *ppklen = pub->public_key [all...] |
/external/openssl/crypto/asn1/ |
H A D | 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 [all...] |