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

Unified Diff: third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits.html

Issue 2837383002: Raise an error when calling WebCrypto's deriveBits() for HKDF with (Closed)
Patch Set: checkpoint Created 3 years, 8 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: third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits.html
diff --git a/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits.html b/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits.html
index a6d11fafd959f1105364548505e99d35f29e43bf..d4afc5166b4bce3ec5c76194813ecc897894b871 100644
--- a/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits.html
+++ b/third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits.html
@@ -36,15 +36,13 @@ Promise.resolve(null).then(function(result) {
shouldBe("derivedBits.byteLength", "0");
- debug("Derive 4 bits from the HKDF key");
- return crypto.subtle.deriveBits(kHkdfAlgorithm, baseKey, 4);
+ debug("Derive 8 bits from the HKDF key");
+ return crypto.subtle.deriveBits(kHkdfAlgorithm, baseKey, 8);
}).then(function(result) {
derivedBits = new DataView(result);
shouldBe("derivedBits.byteLength", "1");
- // The last 4 bits should be zeroes.
- shouldBe("derivedBits.getUint8(0)", "0x80");
-
+ shouldBe("derivedBits.getUint8(0)", "141");
}).then(finishJSTest, failAndFinishJSTest);
</script>
« no previous file with comments | « components/webcrypto/status.cc ('k') | third_party/WebKit/LayoutTests/crypto/subtle/hkdf/deriveBits-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698