Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: components/webcrypto/algorithms/pbkdf2.cc

Issue 1461703009: Switch //components from vector_as_array to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eroman comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webcrypto/algorithms/hmac_unittest.cc ('k') | components/webcrypto/algorithms/rsa.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/algorithms/pbkdf2.cc
diff --git a/components/webcrypto/algorithms/pbkdf2.cc b/components/webcrypto/algorithms/pbkdf2.cc
index c3449f5d1a30c17ed5b69cf4812c6ae9b35be33e..6c78f51516eecb33e01363f2d0796f3f425d6e8d 100644
--- a/components/webcrypto/algorithms/pbkdf2.cc
+++ b/components/webcrypto/algorithms/pbkdf2.cc
@@ -76,10 +76,9 @@ class Pbkdf2Implementation : public AlgorithmImplementation {
const std::vector<uint8_t>& password = GetSymmetricKeyData(base_key);
if (!PKCS5_PBKDF2_HMAC(
- reinterpret_cast<const char*>(vector_as_array(&password)),
- password.size(), params->salt().data(), params->salt().size(),
- params->iterations(), digest_algorithm, keylen_bytes,
- vector_as_array(derived_bytes))) {
+ reinterpret_cast<const char*>(password.data()), password.size(),
+ params->salt().data(), params->salt().size(), params->iterations(),
+ digest_algorithm, keylen_bytes, derived_bytes->data())) {
return Status::OperationError();
}
return Status::Success();
« no previous file with comments | « components/webcrypto/algorithms/hmac_unittest.cc ('k') | components/webcrypto/algorithms/rsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698