/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_)); 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);
|
H A D | p256_key_exchange.h | 63 // |public_key| consists of |kUncompressedP256PointBytes| bytes. 64 P256KeyExchange(EC_KEY* private_key, const uint8* public_key); 69 // |public_key| consists of |kUncompressedP256PointBytes| bytes. 70 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 | 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));
|
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/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_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/ssl/ |
H A D | openssl_client_key_store.cc | 54 public_key = CopyEVP_PKEY(pub_key); 59 EVP_PKEY_free(public_key); 64 public_key = CopyEVP_PKEY(other.public_key); 69 EVP_PKEY* old_public_key = public_key; 71 public_key = CopyEVP_PKEY(other.public_key); 77 int OpenSSLClientKeyStore::FindKeyPairIndex(EVP_PKEY* public_key) { argument 78 if (!public_key) 81 if (EVP_PKEY_cmp(pairs_[n].public_key, public_ke [all...] |
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/net/cert/ |
H A D | cert_database_openssl.cc | 43 crypto::ScopedOpenSSL<EVP_PKEY, EVP_PKEY_free> public_key( 46 if (!OpenSSLPrivateKeyStore::HasPrivateKey(public_key.get()))
|
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.h | 31 // using |public_key|, which is a DER-encoded SubjectPublicKeyInfo. 32 // If |public_key| refers to an unsupported public key, returns NULL. 35 const base::StringPiece& public_key, 55 bool Init(const base::StringPiece& public_key,
|
/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_nss.cc | 40 SECKEYPublicKey* public_key = SECKEY_ExtractPublicKey(spki); 42 if (!public_key) 47 SECKEY_DestroyPublicKey(public_key); 60 SECKEY_DestroyPublicKey(public_key); 70 vfy_context_ = VFY_CreateContextWithAlgorithmID(public_key, &sig, 73 SECKEY_DestroyPublicKey(public_key); // Done with public_key.
|
H A D | rsa_private_key_mac.cc | 34 result->public_key(), CSSM_KEYUSE_SIGN, 119 CSSM_KEY* public_key = result->public_key(); local 121 public_key->KeyData.Data = reinterpret_cast<uint8*>(CSSMMalloc(size)); 122 if (!public_key->KeyData.Data) { 126 memcpy(public_key->KeyData.Data, &public_key_data.front(), size); 127 public_key->KeyData.Length = size; 128 public_key->KeyHeader.Format = CSSM_KEYBLOB_RAW_FORMAT_PKCS1; 129 public_key->KeyHeader.HeaderVersion = CSSM_KEYHEADER_VERSION; 130 public_key [all...] |
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/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/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/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/chrome/common/remoting/ |
H A D | chromoting_host_info.h | 19 std::string public_key; member in struct:remoting::ChromotingHostInfo
|
/external/chromium_org/chrome/browser/extensions/api/networking_private/ |
H A D | 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,
|