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

Unified Diff: LayoutTests/crypto/subtle/derive-hkdf-keys-expected.txt

Issue 822083003: Webcrypto: add layout tests for HKDF algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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: LayoutTests/crypto/subtle/derive-hkdf-keys-expected.txt
diff --git a/LayoutTests/crypto/subtle/derive-hkdf-keys-expected.txt b/LayoutTests/crypto/subtle/derive-hkdf-keys-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..944758ef1bd4ffd6c2c51938da88998dcd1e4aa8
--- /dev/null
+++ b/LayoutTests/crypto/subtle/derive-hkdf-keys-expected.txt
@@ -0,0 +1,20 @@
+Test deriving HKDF keys with deriveKey()
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Derive an HKDF key from ECDH keys
+PASS hkdfKey.algorithm.name is "HKDF"
+PASS typeof hkdfKey.extractable is 'boolean'
+PASS hkdfKey.extractable is true
+PASS hkdfKey.usages.join(',') is "deriveKey,deriveBits"
+
+Derive 128 bits from the HKDF key
+PASS bytesToHexString(derivedBits) is "2afc8b03741413cd32a80dc9a8451be8"
+
+Try to derive an HKDF key from an HKDF key
+error is: TypeError: No length was specified for the HKDF Derive Bits operation.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698