/external/chromium_org/crypto/ |
D | symmetric_key_win.cc | 171 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 …]
|
D | symmetric_key_unittest.cc | 18 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()
|
D | hmac.cc | 16 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()
|
D | symmetric_key_nss.cc | 97 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()
|
D | symmetric_key_openssl.cc | 85 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()
|
D | symmetric_key.h | 58 static SymmetricKey* Import(Algorithm algorithm, const std::string& raw_key); 71 bool GetRawKey(std::string* raw_key);
|
/external/chromium_org/content/child/webcrypto/openssl/ |
D | aes_ctr_openssl.cc | 45 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()
|
D | aes_gcm_openssl.cc | 42 const std::vector<uint8_t>& raw_key = in AesGcmEncryptDecrypt() local 52 raw_key, in AesGcmEncryptDecrypt() 57 GetAesGcmAlgorithmFromKeySize(raw_key.size()), in AesGcmEncryptDecrypt()
|
D | aes_kw_openssl.cc | 51 const std::vector<uint8_t>& raw_key = in AesKwEncryptDecrypt() local 55 raw_key, in AesKwEncryptDecrypt() 60 GetAesKwAlgorithmFromKeySize(raw_key.size()), in AesKwEncryptDecrypt()
|
D | util_openssl.cc | 40 const std::vector<uint8_t>& raw_key, in AeadEncryptDecrypt() argument 55 vector_as_array(&raw_key), in AeadEncryptDecrypt() 56 raw_key.size(), in AeadEncryptDecrypt()
|
D | aes_cbc_openssl.cc | 47 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()
|
D | hmac_openssl.cc | 32 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()
|
D | util_openssl.h | 33 const std::vector<uint8_t>& raw_key,
|
/external/chromium_org/content/child/webcrypto/test/ |
D | hmac_unittest.cc | 65 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 …]
|
D | aes_kw_unittest.cc | 259 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()
|
D | rsa_oaep_unittest.cc | 447 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()
|
D | aes_gcm_unittest.cc | 181 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()
|
D | aes_cbc_unittest.cc | 42 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/ |
D | easy_unlock_auth_attempt.cc | 28 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/ |
D | json_web_key.cc | 117 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/ |
D | component_loader.cc | 65 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/ |
D | bootstrapper.cc | 2524 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()
|
D | runtime.cc | 6049 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/ |
D | mark-compact.cc | 2411 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()
|