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

Side by Side Diff: LayoutTests/crypto/subtle/hmac/cloneKey.html

Issue 958353003: [WebCrypto] Move cloneKey test to respective algorithm directory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script>
6 <script src="../resources/symmetric-cloneKey.js"></script>
7 </head>
8 <body>
9 <script>
10 description('Tests structured cloning of HMAC keys');
11
12 jsTestIsAsync = true;
13
14 var k8BitData = "30";
15 var k64BitData = "0011223344554677";
16 var k88BitData = "00112233445546778899aa";
17 var k128BitData = "30112233445566778899aabbccddeeff";
18
19 var kPossibleHashAlgorithms = ['SHA-1', 'SHA-256', 'SHA-512'];
20 var kPossibleExtractable = [true, false];
21 var kPossibleKeyUsages = [['sign'], ['verify'], ['sign', 'verify']];
22 var kKeyData = [k8BitData, k64BitData, k88BitData, k128BitData];
23 var kKeyHasLength = true;
24
25 testCloneSymmetricKeys('HMAC', kPossibleHashAlgorithms, kPossibleExtractable, kP ossibleKeyUsages, kKeyData, kKeyHasLength).then(finishJSTest, failAndFinishJSTes t);
26
27 </script>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « LayoutTests/crypto/subtle/hkdf/cloneKey-expected.txt ('k') | LayoutTests/crypto/subtle/hmac/cloneKey-empty.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698