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

Unified Diff: components/webcrypto/algorithms/aes_gcm_unittest.cc

Issue 2160943003: Transfer WebCrypto databuffers across the Blink API using blink::WebVector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
Index: components/webcrypto/algorithms/aes_gcm_unittest.cc
diff --git a/components/webcrypto/algorithms/aes_gcm_unittest.cc b/components/webcrypto/algorithms/aes_gcm_unittest.cc
index 8b03a5352f7f08e9a65884f312526d3d25e1835b..d0a851b0566feccafb0240af098bf24936dad651 100644
--- a/components/webcrypto/algorithms/aes_gcm_unittest.cc
+++ b/components/webcrypto/algorithms/aes_gcm_unittest.cc
@@ -26,11 +26,8 @@ blink::WebCryptoAlgorithm CreateAesGcmAlgorithm(
unsigned int tag_length_bits) {
return blink::WebCryptoAlgorithm::adoptParamsAndCreate(
blink::WebCryptoAlgorithmIdAesGcm,
- new blink::WebCryptoAesGcmParams(
- iv.data(), static_cast<unsigned int>(iv.size()), true,
- additional_data.data(),
- static_cast<unsigned int>(additional_data.size()), true,
- tag_length_bits));
+ new blink::WebCryptoAesGcmParams(iv, true, additional_data, true,
+ tag_length_bits));
}
blink::WebCryptoAlgorithm CreateAesGcmKeyGenAlgorithm(
« no previous file with comments | « components/webcrypto/algorithms/aes_ctr_unittest.cc ('k') | components/webcrypto/algorithms/rsa_oaep_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698