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

Unified Diff: components/webcrypto/algorithms/rsa_oaep.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: 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
Index: components/webcrypto/algorithms/rsa_oaep.cc
diff --git a/components/webcrypto/algorithms/rsa_oaep.cc b/components/webcrypto/algorithms/rsa_oaep.cc
index 5a6970956945264253e1e281ce8780595c3ee679..6fdc41c83ec4c7d3bc77632ccaa21ce15c108f8e 100644
--- a/components/webcrypto/algorithms/rsa_oaep.cc
+++ b/components/webcrypto/algorithms/rsa_oaep.cc
@@ -4,7 +4,6 @@
#include <openssl/evp.h>
-#include "base/stl_util.h"
#include "components/webcrypto/algorithms/rsa.h"
#include "components/webcrypto/algorithms/util.h"
#include "components/webcrypto/blink_key_handle.h"
@@ -80,8 +79,8 @@ Status CommonEncryptDecrypt(InitFunc init_func,
buffer->resize(outlen);
// Do the actual encryption/decryption.
- if (!encrypt_decrypt_func(ctx.get(), vector_as_array(buffer), &outlen,
- data.bytes(), data.byte_length())) {
+ if (!encrypt_decrypt_func(ctx.get(), buffer->data(), &outlen, data.bytes(),
+ data.byte_length())) {
return Status::OperationError();
}
buffer->resize(outlen);

Powered by Google App Engine
This is Rietveld 408576698