Index: components/webcrypto/algorithms/ec.cc |
diff --git a/components/webcrypto/algorithms/ec.cc b/components/webcrypto/algorithms/ec.cc |
index 20baa57f6d2bdbe137a841e4105fe564b6c75c92..e489b87f325693322660872c3bef8493fc741121 100644 |
--- a/components/webcrypto/algorithms/ec.cc |
+++ b/components/webcrypto/algorithms/ec.cc |
@@ -10,7 +10,6 @@ |
#include <openssl/pkcs12.h> |
#include "base/logging.h" |
-#include "base/stl_util.h" |
#include "components/webcrypto/algorithms/asymmetric_key_util.h" |
#include "components/webcrypto/algorithms/util.h" |
#include "components/webcrypto/blink_key_handle.h" |
@@ -159,10 +158,8 @@ Status WritePaddedBIGNUM(const std::string& member_name, |
size_t padded_length, |
JwkWriter* jwk) { |
std::vector<uint8_t> padded_bytes(padded_length); |
- if (!BN_bn2bin_padded(vector_as_array(&padded_bytes), padded_bytes.size(), |
- value)) { |
+ if (!BN_bn2bin_padded(padded_bytes.data(), padded_bytes.size(), value)) |
return Status::OperationError(); |
- } |
jwk->SetBytes(member_name, CryptoData(padded_bytes)); |
return Status::Success(); |
} |