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

Side by Side Diff: third_party/WebKit/LayoutTests/crypto/subtle/aes-cbc/cloneKey-expected.txt

Issue 2726573002: Rebaseline crypto/subtle/*/cloneKey.html. (Closed)
Patch Set: Created 3 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
1 Tests structured cloning of AES-CBC keys 1 Tests structured cloning of AES-CBC keys
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS importedKey.extraProperty is "hi" 6 PASS importedKey.extraProperty is "hi"
7 PASS importedKey.type is "secret" 7 PASS importedKey.type is "secret"
8 PASS typeof importedKey.extractable is 'boolean' 8 PASS typeof importedKey.extractable is 'boolean'
9 PASS importedKey.extractable is true 9 PASS importedKey.extractable is true
10 PASS importedKey.algorithm.name is "AES-CBC" 10 PASS importedKey.algorithm.name is "AES-CBC"
11 PASS importedKey.algorithm.length is 128 11 PASS importedKey.algorithm.length is 128
12 PASS importedKey.usages.join(',') is "encrypt" 12 PASS importedKey.usages.join(',') is "encrypt"
13 PASS importedKey is not clonedKey 13 PASS importedKey is not clonedKey
14 PASS clonedKey.extraProperty is undefined. 14 PASS clonedKey.extraProperty is undefined.
15 PASS clonedKey.type is "secret" 15 PASS clonedKey.type is "secret"
16 PASS typeof clonedKey.extractable is 'boolean' 16 PASS typeof clonedKey.extractable is 'boolean'
17 PASS clonedKey.extractable is true 17 PASS clonedKey.extractable is true
18 PASS clonedKey.algorithm.name is "AES-CBC" 18 PASS clonedKey.algorithm.name is "AES-CBC"
19 PASS clonedKey.algorithm.length is 128 19 PASS clonedKey.algorithm.length is 128
20 PASS clonedKey.usages.join(',') is "encrypt" 20 PASS clonedKey.usages.join(',') is "encrypt"
21 Serialized key bytes: 4b010110031030112233445566778899aabbccddeeff 21 Serialized key bytes: 5c4b010110031030112233445566778899aabbccddeeff00
22 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and was 22 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and was
23 23
24 PASS importedKey.extraProperty is "hi" 24 PASS importedKey.extraProperty is "hi"
25 PASS importedKey.type is "secret" 25 PASS importedKey.type is "secret"
26 PASS typeof importedKey.extractable is 'boolean' 26 PASS typeof importedKey.extractable is 'boolean'
27 PASS importedKey.extractable is true 27 PASS importedKey.extractable is true
28 PASS importedKey.algorithm.name is "AES-CBC" 28 PASS importedKey.algorithm.name is "AES-CBC"
29 PASS importedKey.algorithm.length is 256 29 PASS importedKey.algorithm.length is 256
30 PASS importedKey.usages.join(',') is "encrypt" 30 PASS importedKey.usages.join(',') is "encrypt"
31 PASS importedKey is not clonedKey 31 PASS importedKey is not clonedKey
32 PASS clonedKey.extraProperty is undefined. 32 PASS clonedKey.extraProperty is undefined.
33 PASS clonedKey.type is "secret" 33 PASS clonedKey.type is "secret"
34 PASS typeof clonedKey.extractable is 'boolean' 34 PASS typeof clonedKey.extractable is 'boolean'
35 PASS clonedKey.extractable is true 35 PASS clonedKey.extractable is true
36 PASS clonedKey.algorithm.name is "AES-CBC" 36 PASS clonedKey.algorithm.name is "AES-CBC"
37 PASS clonedKey.algorithm.length is 256 37 PASS clonedKey.algorithm.length is 256
38 PASS clonedKey.usages.join(',') is "encrypt" 38 PASS clonedKey.usages.join(',') is "encrypt"
39 Serialized key bytes: 4b010120032000112233445546778899aabbccddeeff00010203040506 0708090a0b0c0d0e0f 39 Serialized key bytes: 5c4b010120032000112233445546778899aabbccddeeff000102030405 060708090a0b0c0d0e0f00
40 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102 030405060708090a0b0c0d0e0f] and was 40 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102 030405060708090a0b0c0d0e0f] and was
41 41
42 PASS importedKey.extraProperty is "hi" 42 PASS importedKey.extraProperty is "hi"
43 PASS importedKey.type is "secret" 43 PASS importedKey.type is "secret"
44 PASS typeof importedKey.extractable is 'boolean' 44 PASS typeof importedKey.extractable is 'boolean'
45 PASS importedKey.extractable is true 45 PASS importedKey.extractable is true
46 PASS importedKey.algorithm.name is "AES-CBC" 46 PASS importedKey.algorithm.name is "AES-CBC"
47 PASS importedKey.algorithm.length is 128 47 PASS importedKey.algorithm.length is 128
48 PASS importedKey.usages.join(',') is "decrypt,wrapKey" 48 PASS importedKey.usages.join(',') is "decrypt,wrapKey"
49 PASS importedKey is not clonedKey 49 PASS importedKey is not clonedKey
50 PASS clonedKey.extraProperty is undefined. 50 PASS clonedKey.extraProperty is undefined.
51 PASS clonedKey.type is "secret" 51 PASS clonedKey.type is "secret"
52 PASS typeof clonedKey.extractable is 'boolean' 52 PASS typeof clonedKey.extractable is 'boolean'
53 PASS clonedKey.extractable is true 53 PASS clonedKey.extractable is true
54 PASS clonedKey.algorithm.name is "AES-CBC" 54 PASS clonedKey.algorithm.name is "AES-CBC"
55 PASS clonedKey.algorithm.length is 128 55 PASS clonedKey.algorithm.length is 128
56 PASS clonedKey.usages.join(',') is "decrypt,wrapKey" 56 PASS clonedKey.usages.join(',') is "decrypt,wrapKey"
57 Serialized key bytes: 4b010110451030112233445566778899aabbccddeeff 57 Serialized key bytes: 5c4b010110451030112233445566778899aabbccddeeff00
58 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and was 58 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and was
59 59
60 PASS importedKey.extraProperty is "hi" 60 PASS importedKey.extraProperty is "hi"
61 PASS importedKey.type is "secret" 61 PASS importedKey.type is "secret"
62 PASS typeof importedKey.extractable is 'boolean' 62 PASS typeof importedKey.extractable is 'boolean'
63 PASS importedKey.extractable is true 63 PASS importedKey.extractable is true
64 PASS importedKey.algorithm.name is "AES-CBC" 64 PASS importedKey.algorithm.name is "AES-CBC"
65 PASS importedKey.algorithm.length is 256 65 PASS importedKey.algorithm.length is 256
66 PASS importedKey.usages.join(',') is "decrypt,wrapKey" 66 PASS importedKey.usages.join(',') is "decrypt,wrapKey"
67 PASS importedKey is not clonedKey 67 PASS importedKey is not clonedKey
68 PASS clonedKey.extraProperty is undefined. 68 PASS clonedKey.extraProperty is undefined.
69 PASS clonedKey.type is "secret" 69 PASS clonedKey.type is "secret"
70 PASS typeof clonedKey.extractable is 'boolean' 70 PASS typeof clonedKey.extractable is 'boolean'
71 PASS clonedKey.extractable is true 71 PASS clonedKey.extractable is true
72 PASS clonedKey.algorithm.name is "AES-CBC" 72 PASS clonedKey.algorithm.name is "AES-CBC"
73 PASS clonedKey.algorithm.length is 256 73 PASS clonedKey.algorithm.length is 256
74 PASS clonedKey.usages.join(',') is "decrypt,wrapKey" 74 PASS clonedKey.usages.join(',') is "decrypt,wrapKey"
75 Serialized key bytes: 4b010120452000112233445546778899aabbccddeeff00010203040506 0708090a0b0c0d0e0f 75 Serialized key bytes: 5c4b010120452000112233445546778899aabbccddeeff000102030405 060708090a0b0c0d0e0f00
76 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102 030405060708090a0b0c0d0e0f] and was 76 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102 030405060708090a0b0c0d0e0f] and was
77 77
78 PASS importedKey.extraProperty is "hi" 78 PASS importedKey.extraProperty is "hi"
79 PASS importedKey.type is "secret" 79 PASS importedKey.type is "secret"
80 PASS typeof importedKey.extractable is 'boolean' 80 PASS typeof importedKey.extractable is 'boolean'
81 PASS importedKey.extractable is true 81 PASS importedKey.extractable is true
82 PASS importedKey.algorithm.name is "AES-CBC" 82 PASS importedKey.algorithm.name is "AES-CBC"
83 PASS importedKey.algorithm.length is 128 83 PASS importedKey.algorithm.length is 128
84 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 84 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
85 PASS importedKey is not clonedKey 85 PASS importedKey is not clonedKey
86 PASS clonedKey.extraProperty is undefined. 86 PASS clonedKey.extraProperty is undefined.
87 PASS clonedKey.type is "secret" 87 PASS clonedKey.type is "secret"
88 PASS typeof clonedKey.extractable is 'boolean' 88 PASS typeof clonedKey.extractable is 'boolean'
89 PASS clonedKey.extractable is true 89 PASS clonedKey.extractable is true
90 PASS clonedKey.algorithm.name is "AES-CBC" 90 PASS clonedKey.algorithm.name is "AES-CBC"
91 PASS clonedKey.algorithm.length is 128 91 PASS clonedKey.algorithm.length is 128
92 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 92 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
93 Serialized key bytes: 4b010110c3011030112233445566778899aabbccddeeff00 93 Serialized key bytes: 5c4b010110c3011030112233445566778899aabbccddeeff
94 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and was 94 PASS: Cloned key exported data should be [30112233445566778899aabbccddeeff] and was
95 95
96 PASS importedKey.extraProperty is "hi" 96 PASS importedKey.extraProperty is "hi"
97 PASS importedKey.type is "secret" 97 PASS importedKey.type is "secret"
98 PASS typeof importedKey.extractable is 'boolean' 98 PASS typeof importedKey.extractable is 'boolean'
99 PASS importedKey.extractable is true 99 PASS importedKey.extractable is true
100 PASS importedKey.algorithm.name is "AES-CBC" 100 PASS importedKey.algorithm.name is "AES-CBC"
101 PASS importedKey.algorithm.length is 256 101 PASS importedKey.algorithm.length is 256
102 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 102 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
103 PASS importedKey is not clonedKey 103 PASS importedKey is not clonedKey
104 PASS clonedKey.extraProperty is undefined. 104 PASS clonedKey.extraProperty is undefined.
105 PASS clonedKey.type is "secret" 105 PASS clonedKey.type is "secret"
106 PASS typeof clonedKey.extractable is 'boolean' 106 PASS typeof clonedKey.extractable is 'boolean'
107 PASS clonedKey.extractable is true 107 PASS clonedKey.extractable is true
108 PASS clonedKey.algorithm.name is "AES-CBC" 108 PASS clonedKey.algorithm.name is "AES-CBC"
109 PASS clonedKey.algorithm.length is 256 109 PASS clonedKey.algorithm.length is 256
110 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 110 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
111 Serialized key bytes: 4b010120c3012000112233445546778899aabbccddeeff000102030405 060708090a0b0c0d0e0f00 111 Serialized key bytes: 5c4b010120c3012000112233445546778899aabbccddeeff0001020304 05060708090a0b0c0d0e0f
112 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102 030405060708090a0b0c0d0e0f] and was 112 PASS: Cloned key exported data should be [00112233445546778899aabbccddeeff000102 030405060708090a0b0c0d0e0f] and was
113 113
114 PASS importedKey.extraProperty is "hi" 114 PASS importedKey.extraProperty is "hi"
115 PASS importedKey.type is "secret" 115 PASS importedKey.type is "secret"
116 PASS typeof importedKey.extractable is 'boolean' 116 PASS typeof importedKey.extractable is 'boolean'
117 PASS importedKey.extractable is false 117 PASS importedKey.extractable is false
118 PASS importedKey.algorithm.name is "AES-CBC" 118 PASS importedKey.algorithm.name is "AES-CBC"
119 PASS importedKey.algorithm.length is 128 119 PASS importedKey.algorithm.length is 128
120 PASS importedKey.usages.join(',') is "encrypt" 120 PASS importedKey.usages.join(',') is "encrypt"
121 PASS importedKey is not clonedKey 121 PASS importedKey is not clonedKey
122 PASS clonedKey.extraProperty is undefined. 122 PASS clonedKey.extraProperty is undefined.
123 PASS clonedKey.type is "secret" 123 PASS clonedKey.type is "secret"
124 PASS typeof clonedKey.extractable is 'boolean' 124 PASS typeof clonedKey.extractable is 'boolean'
125 PASS clonedKey.extractable is false 125 PASS clonedKey.extractable is false
126 PASS clonedKey.algorithm.name is "AES-CBC" 126 PASS clonedKey.algorithm.name is "AES-CBC"
127 PASS clonedKey.algorithm.length is 128 127 PASS clonedKey.algorithm.length is 128
128 PASS clonedKey.usages.join(',') is "encrypt" 128 PASS clonedKey.usages.join(',') is "encrypt"
129 Serialized key bytes: 4b010110021030112233445566778899aabbccddeeff 129 Serialized key bytes: 5c4b010110021030112233445566778899aabbccddeeff00
130 130
131 PASS importedKey.extraProperty is "hi" 131 PASS importedKey.extraProperty is "hi"
132 PASS importedKey.type is "secret" 132 PASS importedKey.type is "secret"
133 PASS typeof importedKey.extractable is 'boolean' 133 PASS typeof importedKey.extractable is 'boolean'
134 PASS importedKey.extractable is false 134 PASS importedKey.extractable is false
135 PASS importedKey.algorithm.name is "AES-CBC" 135 PASS importedKey.algorithm.name is "AES-CBC"
136 PASS importedKey.algorithm.length is 256 136 PASS importedKey.algorithm.length is 256
137 PASS importedKey.usages.join(',') is "encrypt" 137 PASS importedKey.usages.join(',') is "encrypt"
138 PASS importedKey is not clonedKey 138 PASS importedKey is not clonedKey
139 PASS clonedKey.extraProperty is undefined. 139 PASS clonedKey.extraProperty is undefined.
140 PASS clonedKey.type is "secret" 140 PASS clonedKey.type is "secret"
141 PASS typeof clonedKey.extractable is 'boolean' 141 PASS typeof clonedKey.extractable is 'boolean'
142 PASS clonedKey.extractable is false 142 PASS clonedKey.extractable is false
143 PASS clonedKey.algorithm.name is "AES-CBC" 143 PASS clonedKey.algorithm.name is "AES-CBC"
144 PASS clonedKey.algorithm.length is 256 144 PASS clonedKey.algorithm.length is 256
145 PASS clonedKey.usages.join(',') is "encrypt" 145 PASS clonedKey.usages.join(',') is "encrypt"
146 Serialized key bytes: 4b010120022000112233445546778899aabbccddeeff00010203040506 0708090a0b0c0d0e0f 146 Serialized key bytes: 5c4b010120022000112233445546778899aabbccddeeff000102030405 060708090a0b0c0d0e0f00
147 147
148 PASS importedKey.extraProperty is "hi" 148 PASS importedKey.extraProperty is "hi"
149 PASS importedKey.type is "secret" 149 PASS importedKey.type is "secret"
150 PASS typeof importedKey.extractable is 'boolean' 150 PASS typeof importedKey.extractable is 'boolean'
151 PASS importedKey.extractable is false 151 PASS importedKey.extractable is false
152 PASS importedKey.algorithm.name is "AES-CBC" 152 PASS importedKey.algorithm.name is "AES-CBC"
153 PASS importedKey.algorithm.length is 128 153 PASS importedKey.algorithm.length is 128
154 PASS importedKey.usages.join(',') is "decrypt,wrapKey" 154 PASS importedKey.usages.join(',') is "decrypt,wrapKey"
155 PASS importedKey is not clonedKey 155 PASS importedKey is not clonedKey
156 PASS clonedKey.extraProperty is undefined. 156 PASS clonedKey.extraProperty is undefined.
157 PASS clonedKey.type is "secret" 157 PASS clonedKey.type is "secret"
158 PASS typeof clonedKey.extractable is 'boolean' 158 PASS typeof clonedKey.extractable is 'boolean'
159 PASS clonedKey.extractable is false 159 PASS clonedKey.extractable is false
160 PASS clonedKey.algorithm.name is "AES-CBC" 160 PASS clonedKey.algorithm.name is "AES-CBC"
161 PASS clonedKey.algorithm.length is 128 161 PASS clonedKey.algorithm.length is 128
162 PASS clonedKey.usages.join(',') is "decrypt,wrapKey" 162 PASS clonedKey.usages.join(',') is "decrypt,wrapKey"
163 Serialized key bytes: 4b010110441030112233445566778899aabbccddeeff 163 Serialized key bytes: 5c4b010110441030112233445566778899aabbccddeeff00
164 164
165 PASS importedKey.extraProperty is "hi" 165 PASS importedKey.extraProperty is "hi"
166 PASS importedKey.type is "secret" 166 PASS importedKey.type is "secret"
167 PASS typeof importedKey.extractable is 'boolean' 167 PASS typeof importedKey.extractable is 'boolean'
168 PASS importedKey.extractable is false 168 PASS importedKey.extractable is false
169 PASS importedKey.algorithm.name is "AES-CBC" 169 PASS importedKey.algorithm.name is "AES-CBC"
170 PASS importedKey.algorithm.length is 256 170 PASS importedKey.algorithm.length is 256
171 PASS importedKey.usages.join(',') is "decrypt,wrapKey" 171 PASS importedKey.usages.join(',') is "decrypt,wrapKey"
172 PASS importedKey is not clonedKey 172 PASS importedKey is not clonedKey
173 PASS clonedKey.extraProperty is undefined. 173 PASS clonedKey.extraProperty is undefined.
174 PASS clonedKey.type is "secret" 174 PASS clonedKey.type is "secret"
175 PASS typeof clonedKey.extractable is 'boolean' 175 PASS typeof clonedKey.extractable is 'boolean'
176 PASS clonedKey.extractable is false 176 PASS clonedKey.extractable is false
177 PASS clonedKey.algorithm.name is "AES-CBC" 177 PASS clonedKey.algorithm.name is "AES-CBC"
178 PASS clonedKey.algorithm.length is 256 178 PASS clonedKey.algorithm.length is 256
179 PASS clonedKey.usages.join(',') is "decrypt,wrapKey" 179 PASS clonedKey.usages.join(',') is "decrypt,wrapKey"
180 Serialized key bytes: 4b010120442000112233445546778899aabbccddeeff00010203040506 0708090a0b0c0d0e0f 180 Serialized key bytes: 5c4b010120442000112233445546778899aabbccddeeff000102030405 060708090a0b0c0d0e0f00
181 181
182 PASS importedKey.extraProperty is "hi" 182 PASS importedKey.extraProperty is "hi"
183 PASS importedKey.type is "secret" 183 PASS importedKey.type is "secret"
184 PASS typeof importedKey.extractable is 'boolean' 184 PASS typeof importedKey.extractable is 'boolean'
185 PASS importedKey.extractable is false 185 PASS importedKey.extractable is false
186 PASS importedKey.algorithm.name is "AES-CBC" 186 PASS importedKey.algorithm.name is "AES-CBC"
187 PASS importedKey.algorithm.length is 128 187 PASS importedKey.algorithm.length is 128
188 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 188 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
189 PASS importedKey is not clonedKey 189 PASS importedKey is not clonedKey
190 PASS clonedKey.extraProperty is undefined. 190 PASS clonedKey.extraProperty is undefined.
191 PASS clonedKey.type is "secret" 191 PASS clonedKey.type is "secret"
192 PASS typeof clonedKey.extractable is 'boolean' 192 PASS typeof clonedKey.extractable is 'boolean'
193 PASS clonedKey.extractable is false 193 PASS clonedKey.extractable is false
194 PASS clonedKey.algorithm.name is "AES-CBC" 194 PASS clonedKey.algorithm.name is "AES-CBC"
195 PASS clonedKey.algorithm.length is 128 195 PASS clonedKey.algorithm.length is 128
196 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 196 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
197 Serialized key bytes: 4b010110c2011030112233445566778899aabbccddeeff00 197 Serialized key bytes: 5c4b010110c2011030112233445566778899aabbccddeeff
198 198
199 PASS importedKey.extraProperty is "hi" 199 PASS importedKey.extraProperty is "hi"
200 PASS importedKey.type is "secret" 200 PASS importedKey.type is "secret"
201 PASS typeof importedKey.extractable is 'boolean' 201 PASS typeof importedKey.extractable is 'boolean'
202 PASS importedKey.extractable is false 202 PASS importedKey.extractable is false
203 PASS importedKey.algorithm.name is "AES-CBC" 203 PASS importedKey.algorithm.name is "AES-CBC"
204 PASS importedKey.algorithm.length is 256 204 PASS importedKey.algorithm.length is 256
205 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 205 PASS importedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
206 PASS importedKey is not clonedKey 206 PASS importedKey is not clonedKey
207 PASS clonedKey.extraProperty is undefined. 207 PASS clonedKey.extraProperty is undefined.
208 PASS clonedKey.type is "secret" 208 PASS clonedKey.type is "secret"
209 PASS typeof clonedKey.extractable is 'boolean' 209 PASS typeof clonedKey.extractable is 'boolean'
210 PASS clonedKey.extractable is false 210 PASS clonedKey.extractable is false
211 PASS clonedKey.algorithm.name is "AES-CBC" 211 PASS clonedKey.algorithm.name is "AES-CBC"
212 PASS clonedKey.algorithm.length is 256 212 PASS clonedKey.algorithm.length is 256
213 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey" 213 PASS clonedKey.usages.join(',') is "encrypt,wrapKey,unwrapKey"
214 Serialized key bytes: 4b010120c2012000112233445546778899aabbccddeeff000102030405 060708090a0b0c0d0e0f00 214 Serialized key bytes: 5c4b010120c2012000112233445546778899aabbccddeeff0001020304 05060708090a0b0c0d0e0f
215 215
216 PASS successfullyParsed is true 216 PASS successfullyParsed is true
217 217
218 TEST COMPLETE 218 TEST COMPLETE
219 219
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698