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

Unified Diff: LayoutTests/crypto/subtle/hkdf-deriveKey-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/hkdf-deriveKey-expected.txt
diff --git a/LayoutTests/crypto/subtle/hkdf-deriveKey-expected.txt b/LayoutTests/crypto/subtle/hkdf-deriveKey-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5f48c6257fe209317c160ba549688702a0d84b3d
--- /dev/null
+++ b/LayoutTests/crypto/subtle/hkdf-deriveKey-expected.txt
@@ -0,0 +1,27 @@
+Test deriveKey() for HKDF
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS derivedKey.type is "secret"
+PASS typeof derivedKey.extractable is 'boolean'
+PASS derivedKey.extractable is true
+PASS derivedKey.algorithm.name is "AES-GCM"
+PASS derivedKey.usages.join(',') is "encrypt"
+
+Try to derive an HKDF key...
+error is: NotSupportedError: The requested operation is unsupported
eroman 2015/01/12 22:35:23 Why is this not supported error. Shouldn't it be a
nharper 2015/01/13 00:11:16 You're correct. This was an issue with the -expect
+PASS emptyKey.type is "secret"
+PASS typeof emptyKey.extractable is 'boolean'
+PASS emptyKey.extractable is true
+PASS emptyKey.algorithm.name is "HKDF"
+PASS emptyKey.usages.join(',') is "deriveKey"
+PASS derivedKey.type is "secret"
+PASS typeof derivedKey.extractable is 'boolean'
+PASS derivedKey.extractable is true
+PASS derivedKey.algorithm.name is "AES-GCM"
+PASS derivedKey.usages.join(',') is "encrypt"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698