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

Side by Side Diff: LayoutTests/crypto/deserialize-legacy-aes-key-empty-usages.html

Issue 770363002: [WebCrypto] Crypto tests updated to use KeyUsage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed file and removed unwanted expected file Created 6 years 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 </head>
7 <body>
8 <script>
9 description("Check that an already imported key with empty usages can be deseria lized.");
10
11 // It used to be possible to import keys with empty usages, it is possible that
12 // such keys were persisted to storage. This test verifies that such keys can
13 // still be successfully de-serialized.
14
15 // The version number of the serialized format used is 7.
16
17 var serializedKey = "ff073f004b010110011030112233445566778899aabbccddeeff";
18
19 var key = internals.deserializeBuffer(hexStringToUint8Array(serializedKey).buffe r);
20
21 shouldBeEqualToString("key.type", "secret");
22 shouldBeTrue("key.extractable");
23 shouldBeEqualToString("key.algorithm.name", "AES-CBC");
24 shouldBe("key.usages", "[]");
25
26 </script>
27 </body>
28 </html>
29
OLDNEW
« no previous file with comments | « LayoutTests/crypto/clone-hmacKey-expected.txt ('k') | LayoutTests/crypto/deserialize-legacy-aes-key-empty-usages-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698