Home
last modified time | relevance | path

Searched refs:raw_key (Results 1 – 24 of 24) sorted by relevance

/external/chromium_org/crypto/
Dsymmetric_key_win.cc171 scoped_ptr<BYTE[]>* raw_key) { in GenerateHMACKey() argument
174 DCHECK(raw_key); in GenerateHMACKey()
199 raw_key->swap(random); in GenerateHMACKey()
323 scoped_ptr<BYTE[]> raw_key; in GenerateRandomKey() local
331 &key, &raw_key); in GenerateRandomKey()
341 if (raw_key == NULL) in GenerateRandomKey()
346 raw_key.get(), in GenerateRandomKey()
348 if (raw_key != NULL) in GenerateRandomKey()
349 SecureZeroMemory(raw_key.get(), key_size_in_bytes); in GenerateRandomKey()
465 const std::string& raw_key) { in Import() argument
[all …]
Dsymmetric_key_unittest.cc18 std::string raw_key; in TEST() local
19 EXPECT_TRUE(key->GetRawKey(&raw_key)); in TEST()
20 EXPECT_EQ(32U, raw_key.size()); in TEST()
30 EXPECT_NE(raw_key, raw_key2); in TEST()
99 std::string raw_key; in TEST_P() local
100 key->GetRawKey(&raw_key); in TEST_P()
101 EXPECT_EQ(test_data.key_size_in_bits / 8, raw_key.size()); in TEST_P()
103 base::StringToLowerASCII(base::HexEncode(raw_key.data(), in TEST_P()
104 raw_key.size()))); in TEST_P()
Dhmac.cc16 std::string raw_key; in Init() local
17 bool result = key->GetRawKey(&raw_key) && Init(raw_key); in Init()
20 std::fill(raw_key.begin(), raw_key.end(), 0); in Init()
Dsymmetric_key_nss.cc97 const std::string& raw_key) { in Import() argument
104 if (raw_key.size() != 128/8 && raw_key.size() != 256/8) in Import()
114 const_cast<char *>(raw_key.data())); in Import()
115 key_item.len = raw_key.size(); in Import()
132 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey() argument
141 raw_key->assign(reinterpret_cast<char*>(key_item->data), key_item->len); in GetRawKey()
Dsymmetric_key_openssl.cc85 const std::string& raw_key) { in Import() argument
90 if (raw_key.size() != 128/8 && raw_key.size() != 256/8) in Import()
95 key->key_ = raw_key; in Import()
99 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey() argument
100 *raw_key = key_; in GetRawKey()
Dsymmetric_key.h58 static SymmetricKey* Import(Algorithm algorithm, const std::string& raw_key);
71 bool GetRawKey(std::string* raw_key);
/external/chromium_org/content/child/webcrypto/openssl/
Daes_ctr_openssl.cc45 const CryptoData& raw_key, in AesCtrEncrypt128BitCounter() argument
62 raw_key.bytes(), in AesCtrEncrypt128BitCounter()
162 const std::vector<uint8_t>& raw_key = in AesCtrEncryptDecrypt() local
178 const EVP_CIPHER* const cipher = GetAESCipherByKeyLength(raw_key.size()); in AesCtrEncryptDecrypt()
222 CryptoData(raw_key), in AesCtrEncryptDecrypt()
241 CryptoData(raw_key), in AesCtrEncryptDecrypt()
254 CryptoData(raw_key), in AesCtrEncryptDecrypt()
Daes_gcm_openssl.cc42 const std::vector<uint8_t>& raw_key = in AesGcmEncryptDecrypt() local
52 raw_key, in AesGcmEncryptDecrypt()
57 GetAesGcmAlgorithmFromKeySize(raw_key.size()), in AesGcmEncryptDecrypt()
Daes_kw_openssl.cc51 const std::vector<uint8_t>& raw_key = in AesKwEncryptDecrypt() local
55 raw_key, in AesKwEncryptDecrypt()
60 GetAesKwAlgorithmFromKeySize(raw_key.size()), in AesKwEncryptDecrypt()
Dutil_openssl.cc40 const std::vector<uint8_t>& raw_key, in AeadEncryptDecrypt() argument
55 vector_as_array(&raw_key), in AeadEncryptDecrypt()
56 raw_key.size(), in AeadEncryptDecrypt()
Daes_cbc_openssl.cc47 const std::vector<uint8_t>& raw_key = in AesCbcEncryptDecrypt() local
74 const EVP_CIPHER* const cipher = GetAESCipherByKeyLength(raw_key.size()); in AesCbcEncryptDecrypt()
80 &raw_key[0], in AesCbcEncryptDecrypt()
Dhmac_openssl.cc32 Status SignHmac(const std::vector<uint8_t>& raw_key, in SignHmac() argument
49 const void* const raw_key_voidp = raw_key.size() ? &raw_key[0] : null_key; in SignHmac()
58 raw_key.size(), in SignHmac()
Dutil_openssl.h33 const std::vector<uint8_t>& raw_key,
/external/chromium_org/content/child/webcrypto/test/
Dhmac_unittest.cc65 std::vector<uint8_t> raw_key; in TEST() local
67 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key)); in TEST()
68 EXPECT_BYTES_EQ(test_key, raw_key); in TEST()
133 std::vector<uint8_t> raw_key; in TEST() local
135 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key)); in TEST()
136 EXPECT_EQ(64U, raw_key.size()); in TEST()
137 keys.push_back(raw_key); in TEST()
156 std::vector<uint8_t> raw_key; in TEST() local
158 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key)); in TEST()
159 EXPECT_EQ(64U, raw_key.size()); in TEST()
[all …]
Daes_kw_unittest.cc259 std::vector<uint8_t> raw_key; in TEST() local
261 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key)); in TEST()
262 EXPECT_BYTES_EQ(test_key, raw_key); in TEST()
459 std::vector<uint8_t> raw_key; in TEST() local
461 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key)); in TEST()
462 EXPECT_BYTES_EQ(key_data, raw_key); in TEST()
Drsa_oaep_unittest.cc447 std::vector<uint8_t> raw_key; in TEST() local
449 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key)); in TEST()
450 EXPECT_BYTES_EQ_HEX(key_hex, raw_key); in TEST()
566 std::vector<uint8_t> raw_key; in TEST() local
568 ExportKey(blink::WebCryptoKeyFormatRaw, unwrapped_key, &raw_key)); in TEST()
569 EXPECT_BYTES_EQ_HEX(key_hex, raw_key); in TEST()
Daes_gcm_unittest.cc181 std::vector<uint8_t> raw_key; in TEST() local
183 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key)); in TEST()
185 EXPECT_BYTES_EQ(test_key, raw_key); in TEST()
Daes_cbc_unittest.cc42 std::vector<uint8_t> raw_key; in GetTestAesCbcKey() local
44 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key)); in GetTestAesCbcKey()
45 EXPECT_BYTES_EQ_HEX(key_hex, raw_key); in GetTestAesCbcKey()
178 std::vector<uint8_t> raw_key; in TEST() local
180 ExportKey(blink::WebCryptoKeyFormatRaw, key, &raw_key)); in TEST()
181 EXPECT_BYTES_EQ(test_key, raw_key); in TEST()
/external/chromium_org/chrome/browser/signin/
Deasy_unlock_auth_attempt.cc28 const std::string& raw_key) { in UnwrapSecret() argument
29 if (raw_key.empty()) in UnwrapSecret()
34 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key)); in UnwrapSecret()
39 std::string iv(raw_key.size(), ' '); in UnwrapSecret()
/external/chromium_org/media/cdm/
Djson_web_key.cc117 std::string raw_key = DecodeBase64(encoded_key); in ConvertJwkToKeyPair() local
118 if (raw_key.empty()) { in ConvertJwkToKeyPair()
124 *jwk_key = std::make_pair(raw_key_id, raw_key); in ConvertJwkToKeyPair()
/external/chromium_org/chrome/browser/extensions/
Dcomponent_loader.cc65 std::string raw_key; in GenerateId() local
67 CHECK(manifest->GetString(manifest_keys::kPublicKey, &raw_key)); in GenerateId()
68 CHECK(Extension::ParsePEMKeyBytes(raw_key, &id_input)); in GenerateId()
/external/chromium_org/v8/src/
Dbootstrapper.cc2524 Object* raw_key(properties->KeyAt(i)); in TransferNamedProperties() local
2525 if (properties->IsKey(raw_key)) { in TransferNamedProperties()
2526 DCHECK(raw_key->IsName()); in TransferNamedProperties()
2528 Handle<Name> key(Name::cast(raw_key)); in TransferNamedProperties()
Druntime.cc6049 CONVERT_ARG_HANDLE_CHECKED(Object, raw_key, 0); in RUNTIME_FUNCTION()
6062 if (raw_key->ToArrayIndex(&index) && index < n) { in RUNTIME_FUNCTION()
6067 if (raw_key->IsSymbol()) { in RUNTIME_FUNCTION()
6068 Handle<Symbol> symbol = Handle<Symbol>::cast(raw_key); in RUNTIME_FUNCTION()
6077 Handle<Symbol>::cast(raw_key))); in RUNTIME_FUNCTION()
6084 isolate, converted, Execution::ToString(isolate, raw_key)); in RUNTIME_FUNCTION()
/external/chromium_org/v8/src/heap/
Dmark-compact.cc2411 Object* raw_key = map_cache->get(i); in ProcessMapCaches() local
2412 if (raw_key == heap()->undefined_value() || in ProcessMapCaches()
2413 raw_key == heap()->the_hole_value()) in ProcessMapCaches()