Searched defs:raw_key (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/crypto/
H A Dhmac.cc16 std::string raw_key; local
17 bool result = key->GetRawKey(&raw_key) && Init(raw_key);
20 std::fill(raw_key.begin(), raw_key.end(), 0);
H A Dsymmetric_key_openssl.cc85 const std::string& raw_key) {
90 if (raw_key.size() != 128/8 && raw_key.size() != 256/8)
95 key->key_ = raw_key;
99 bool SymmetricKey::GetRawKey(std::string* raw_key) { argument
100 *raw_key = key_;
84 Import(Algorithm algorithm, const std::string& raw_key) argument
H A Dsymmetric_key_unittest.cc18 std::string raw_key; local
19 EXPECT_TRUE(key->GetRawKey(&raw_key));
20 EXPECT_EQ(32U, raw_key.size());
30 EXPECT_NE(raw_key, raw_key2);
99 std::string raw_key; local
100 key->GetRawKey(&raw_key);
101 EXPECT_EQ(test_data.key_size_in_bits / 8, raw_key.size());
103 base::StringToLowerASCII(base::HexEncode(raw_key.data(),
104 raw_key.size())));
H A Dsymmetric_key_nss.cc97 const std::string& raw_key) {
104 if (raw_key.size() != 128/8 && raw_key.size() != 256/8)
114 const_cast<char *>(raw_key.data()));
115 key_item.len = raw_key.size();
132 bool SymmetricKey::GetRawKey(std::string* raw_key) { argument
141 raw_key->assign(reinterpret_cast<char*>(key_item->data), key_item->len);
96 Import(Algorithm algorithm, const std::string& raw_key) argument
H A Dsymmetric_key_win.cc171 scoped_ptr<BYTE[]>* raw_key) {
174 DCHECK(raw_key);
199 raw_key->swap(random);
323 scoped_ptr<BYTE[]> raw_key; local
331 &key, &raw_key);
341 if (raw_key == NULL)
346 raw_key.get(),
348 if (raw_key != NULL)
349 SecureZeroMemory(raw_key.get(), key_size_in_bytes);
465 const std::string& raw_key) {
167 GenerateHMACKey(size_t key_size_in_bits, ALG_ID alg, ScopedHCRYPTPROV* provider, ScopedHCRYPTKEY* key, scoped_ptr<BYTE[]>* raw_key) argument
464 Import(Algorithm algorithm, const std::string& raw_key) argument
498 GetRawKey(std::string* raw_key) argument
[all...]
/external/chromium_org/content/child/webcrypto/openssl/
H A Daes_gcm_openssl.cc42 const std::vector<uint8_t>& raw_key = local
52 raw_key,
57 GetAesGcmAlgorithmFromKeySize(raw_key.size()),
H A Daes_kw_openssl.cc51 const std::vector<uint8_t>& raw_key = local
55 raw_key,
60 GetAesKwAlgorithmFromKeySize(raw_key.size()),
H A Daes_cbc_openssl.cc47 const std::vector<uint8_t>& raw_key = local
74 const EVP_CIPHER* const cipher = GetAESCipherByKeyLength(raw_key.size());
80 &raw_key[0],
H A Dutil_openssl.cc40 const std::vector<uint8_t>& raw_key,
55 vector_as_array(&raw_key),
56 raw_key.size(),
39 AeadEncryptDecrypt(EncryptOrDecrypt mode, const std::vector<uint8_t>& raw_key, const CryptoData& data, unsigned int tag_length_bytes, const CryptoData& iv, const CryptoData& additional_data, const EVP_AEAD* aead_alg, std::vector<uint8_t>* buffer) argument
H A Dhmac_openssl.cc32 Status SignHmac(const std::vector<uint8_t>& raw_key, argument
46 // which will result if the raw_key vector is empty; an entirely valid
49 const void* const raw_key_voidp = raw_key.size() ? &raw_key[0] : null_key;
58 raw_key.size(),
H A Daes_ctr_openssl.cc45 const CryptoData& raw_key,
62 raw_key.bytes(),
162 const std::vector<uint8_t>& raw_key = local
178 const EVP_CIPHER* const cipher = GetAESCipherByKeyLength(raw_key.size());
222 CryptoData(raw_key),
241 CryptoData(raw_key),
254 CryptoData(raw_key),
44 AesCtrEncrypt128BitCounter(const EVP_CIPHER* cipher, const CryptoData& raw_key, const CryptoData& input, const CryptoData& counter, uint8_t* output) argument
/external/chromium_org/chrome/browser/signin/
H A Deasy_unlock_auth_attempt.cc25 // raw AES key |raw_key|.
28 const std::string& raw_key) {
29 if (raw_key.empty())
34 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key));
39 std::string iv(raw_key.size(), ' ');
27 UnwrapSecret(const std::string& wrapped_secret, const std::string& raw_key) argument
/external/chromium_org/content/child/webcrypto/test/
H A Daes_gcm_unittest.cc181 std::vector<uint8_t> raw_key; local
183 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key));
185 EXPECT_BYTES_EQ(test_key, raw_key);
H A Daes_kw_unittest.cc259 std::vector<uint8_t> raw_key; local
261 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key));
262 EXPECT_BYTES_EQ(test_key, raw_key);
459 std::vector<uint8_t> raw_key; local
461 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key));
462 EXPECT_BYTES_EQ(key_data, raw_key);
H A Dhmac_unittest.cc65 std::vector<uint8_t> raw_key; local
67 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key));
68 EXPECT_BYTES_EQ(test_key, raw_key);
133 std::vector<uint8_t> raw_key; local
135 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key));
136 EXPECT_EQ(64U, raw_key.size());
137 keys.push_back(raw_key);
156 std::vector<uint8_t> raw_key; local
158 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key));
159 EXPECT_EQ(64U, raw_key
172 std::vector<uint8_t> raw_key; local
[all...]
H A Daes_cbc_unittest.cc42 std::vector<uint8_t> raw_key; local
44 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key));
45 EXPECT_BYTES_EQ_HEX(key_hex, raw_key);
178 std::vector<uint8_t> raw_key; local
180 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key));
181 EXPECT_BYTES_EQ(test_key, raw_key);
H A Drsa_oaep_unittest.cc447 std::vector<uint8_t> raw_key; local
449 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key));
450 EXPECT_BYTES_EQ_HEX(key_hex, raw_key);
566 std::vector<uint8_t> raw_key; local
568 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key));
569 EXPECT_BYTES_EQ_HEX(key_hex, raw_key);
/external/chromium_org/media/cdm/
H A Djson_web_key.cc117 std::string raw_key = DecodeBase64(encoded_key); local
118 if (raw_key.empty()) {
124 *jwk_key = std::make_pair(raw_key_id, raw_key);
/external/chromium_org/chrome/browser/extensions/
H A Dcomponent_loader.cc65 std::string raw_key; local
67 CHECK(manifest->GetString(manifest_keys::kPublicKey, &raw_key));
68 CHECK(Extension::ParsePEMKeyBytes(raw_key, &id_input));
/external/chromium_org/v8/src/heap/
H A Dmark-compact.cc2411 Object* raw_key = map_cache->get(i); local
2412 if (raw_key == heap()->undefined_value() ||
2413 raw_key == heap()->the_hole_value())

Completed in 5495 milliseconds