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

Unified Diff: crypto/hmac_openssl.cc

Issue 1441543002: Make vector_as_array use std::vector::data and switch a few directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark 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/policy/core/common/schema.cc ('k') | crypto/nss_key_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac_openssl.cc
diff --git a/crypto/hmac_openssl.cc b/crypto/hmac_openssl.cc
index ef20290e223200959674baf2d5f4db647b9d2cba..8f043f16c223fffbf6b659c5c5b4abc4a234b118 100644
--- a/crypto/hmac_openssl.cc
+++ b/crypto/hmac_openssl.cc
@@ -48,7 +48,7 @@ bool HMAC::Sign(const base::StringPiece& data,
ScopedOpenSSLSafeSizeBuffer<EVP_MAX_MD_SIZE> result(digest, digest_length);
return !!::HMAC(hash_alg_ == SHA1 ? EVP_sha1() : EVP_sha256(),
- vector_as_array(&plat_->key), plat_->key.size(),
+ plat_->key.data(), plat_->key.size(),
reinterpret_cast<const unsigned char*>(data.data()),
data.size(), result.safe_buffer(), NULL);
}
« no previous file with comments | « components/policy/core/common/schema.cc ('k') | crypto/nss_key_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698