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); |