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

Unified Diff: content/child/webcrypto/nss/aes_cbc_nss.cc

Issue 410743002: [refactor] Replace custom utility function with base's "vector_as_array()" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 6 years, 5 months 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 | « no previous file | content/child/webcrypto/nss/aes_gcm_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/nss/aes_cbc_nss.cc
diff --git a/content/child/webcrypto/nss/aes_cbc_nss.cc b/content/child/webcrypto/nss/aes_cbc_nss.cc
index 176d7d4fe40ddb1c5698f603ec3bf1e5be29abb0..03184404f5d2600971832e6fd5af7e3f7f59d932 100644
--- a/content/child/webcrypto/nss/aes_cbc_nss.cc
+++ b/content/child/webcrypto/nss/aes_cbc_nss.cc
@@ -5,6 +5,7 @@
#include <cryptohi.h>
#include "base/numerics/safe_math.h"
+#include "base/stl_util.h"
#include "content/child/webcrypto/crypto_data.h"
#include "content/child/webcrypto/nss/aes_key_nss.h"
#include "content/child/webcrypto/nss/key_nss.h"
@@ -72,7 +73,7 @@ Status AesCbcEncryptDecrypt(EncryptOrDecrypt mode,
// encryption, and can be smaller for decryption.
buffer->resize(output_max_len.ValueOrDie());
- unsigned char* buffer_data = Uint8VectorStart(buffer);
+ unsigned char* buffer_data = vector_as_array(buffer);
int output_len;
if (SECSuccess != PK11_CipherOp(context.get(),
« no previous file with comments | « no previous file | content/child/webcrypto/nss/aes_gcm_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698