OLD | NEW |
| (Empty) |
1 Tests sign() and verify() for HMAC | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS tmpKey.type is "secret" | |
7 PASS typeof tmpKey.extractable is 'boolean' | |
8 PASS tmpKey.extractable is false | |
9 PASS tmpKey.algorithm.name is "HMAC" | |
10 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
11 PASS tmpKey.algorithm.length is 8 | |
12 PASS tmpKey.usages.join(',') is "sign,verify" | |
13 PASS: Mac should be [fbdb1d1b18aa6c08324b7d64b71fb76370690e1d] and was | |
14 PASS verifyResult is true | |
15 PASS verifyResult is false | |
16 PASS tmpKey.type is "secret" | |
17 PASS typeof tmpKey.extractable is 'boolean' | |
18 PASS tmpKey.extractable is false | |
19 PASS tmpKey.algorithm.name is "HMAC" | |
20 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
21 PASS tmpKey.algorithm.length is 8 | |
22 PASS tmpKey.usages.join(',') is "sign,verify" | |
23 PASS: Mac should be [fbdb1d1b18aa6c08324b7d64b71fb76370690e1d] and was | |
24 PASS verifyResult is true | |
25 PASS verifyResult is false | |
26 PASS tmpKey.type is "secret" | |
27 PASS typeof tmpKey.extractable is 'boolean' | |
28 PASS tmpKey.extractable is false | |
29 PASS tmpKey.algorithm.name is "HMAC" | |
30 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
31 PASS tmpKey.algorithm.length is 8 | |
32 PASS tmpKey.usages.join(',') is "sign,verify" | |
33 PASS: Mac should be [fbdb1d1b18aa6c08324b7d64b71fb76370690e1d] and was | |
34 PASS verifyResult is true | |
35 PASS verifyResult is false | |
36 PASS tmpKey.type is "secret" | |
37 PASS typeof tmpKey.extractable is 'boolean' | |
38 PASS tmpKey.extractable is false | |
39 PASS tmpKey.algorithm.name is "HMAC" | |
40 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
41 PASS tmpKey.algorithm.length is 8 | |
42 PASS tmpKey.usages.join(',') is "sign,verify" | |
43 PASS: Mac should be [fbdb1d1b18aa6c08324b7d64b71fb76370690e1d] and was | |
44 PASS verifyResult is true | |
45 PASS verifyResult is false | |
46 PASS tmpKey.type is "secret" | |
47 PASS typeof tmpKey.extractable is 'boolean' | |
48 PASS tmpKey.extractable is false | |
49 PASS tmpKey.algorithm.name is "HMAC" | |
50 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
51 PASS tmpKey.algorithm.length is 8 | |
52 PASS tmpKey.usages.join(',') is "sign,verify" | |
53 PASS: Mac should be [b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c71214429
2c5ad] and was | |
54 PASS verifyResult is true | |
55 PASS verifyResult is false | |
56 PASS tmpKey.type is "secret" | |
57 PASS typeof tmpKey.extractable is 'boolean' | |
58 PASS tmpKey.extractable is false | |
59 PASS tmpKey.algorithm.name is "HMAC" | |
60 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
61 PASS tmpKey.algorithm.length is 8 | |
62 PASS tmpKey.usages.join(',') is "sign,verify" | |
63 PASS: Mac should be [b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c71214429
2c5ad] and was | |
64 PASS verifyResult is true | |
65 PASS verifyResult is false | |
66 PASS tmpKey.type is "secret" | |
67 PASS typeof tmpKey.extractable is 'boolean' | |
68 PASS tmpKey.extractable is false | |
69 PASS tmpKey.algorithm.name is "HMAC" | |
70 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
71 PASS tmpKey.algorithm.length is 8 | |
72 PASS tmpKey.usages.join(',') is "sign,verify" | |
73 PASS: Mac should be [b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c71214429
2c5ad] and was | |
74 PASS verifyResult is true | |
75 PASS verifyResult is false | |
76 PASS tmpKey.type is "secret" | |
77 PASS typeof tmpKey.extractable is 'boolean' | |
78 PASS tmpKey.extractable is false | |
79 PASS tmpKey.algorithm.name is "HMAC" | |
80 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
81 PASS tmpKey.algorithm.length is 8 | |
82 PASS tmpKey.usages.join(',') is "sign,verify" | |
83 PASS: Mac should be [b613679a0814d9ec772f95d778c35fc5ff1697c493715653c6c71214429
2c5ad] and was | |
84 PASS verifyResult is true | |
85 PASS verifyResult is false | |
86 PASS tmpKey.type is "secret" | |
87 PASS typeof tmpKey.extractable is 'boolean' | |
88 PASS tmpKey.extractable is false | |
89 PASS tmpKey.algorithm.name is "HMAC" | |
90 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
91 PASS tmpKey.algorithm.length is 80 | |
92 PASS tmpKey.usages.join(',') is "sign,verify" | |
93 PASS: Mac should be [3c8162589aafaee024fc9a5ca50dd2336fe3eb28] and was | |
94 PASS verifyResult is true | |
95 PASS verifyResult is false | |
96 PASS tmpKey.type is "secret" | |
97 PASS typeof tmpKey.extractable is 'boolean' | |
98 PASS tmpKey.extractable is false | |
99 PASS tmpKey.algorithm.name is "HMAC" | |
100 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
101 PASS tmpKey.algorithm.length is 80 | |
102 PASS tmpKey.usages.join(',') is "sign,verify" | |
103 PASS: Mac should be [3c8162589aafaee024fc9a5ca50dd2336fe3eb28] and was | |
104 PASS verifyResult is true | |
105 PASS verifyResult is false | |
106 PASS tmpKey.type is "secret" | |
107 PASS typeof tmpKey.extractable is 'boolean' | |
108 PASS tmpKey.extractable is false | |
109 PASS tmpKey.algorithm.name is "HMAC" | |
110 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
111 PASS tmpKey.algorithm.length is 80 | |
112 PASS tmpKey.usages.join(',') is "sign,verify" | |
113 PASS: Mac should be [3c8162589aafaee024fc9a5ca50dd2336fe3eb28] and was | |
114 PASS verifyResult is true | |
115 PASS verifyResult is false | |
116 PASS tmpKey.type is "secret" | |
117 PASS typeof tmpKey.extractable is 'boolean' | |
118 PASS tmpKey.extractable is false | |
119 PASS tmpKey.algorithm.name is "HMAC" | |
120 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
121 PASS tmpKey.algorithm.length is 80 | |
122 PASS tmpKey.usages.join(',') is "sign,verify" | |
123 PASS: Mac should be [3c8162589aafaee024fc9a5ca50dd2336fe3eb28] and was | |
124 PASS verifyResult is true | |
125 PASS verifyResult is false | |
126 PASS tmpKey.type is "secret" | |
127 PASS typeof tmpKey.extractable is 'boolean' | |
128 PASS tmpKey.extractable is false | |
129 PASS tmpKey.algorithm.name is "HMAC" | |
130 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
131 PASS tmpKey.algorithm.length is 640 | |
132 PASS tmpKey.usages.join(',') is "sign,verify" | |
133 PASS: Mac should be [4ac41ab89f625c60125ed65ffa958c6b490ea670] and was | |
134 PASS verifyResult is true | |
135 PASS verifyResult is false | |
136 PASS tmpKey.type is "secret" | |
137 PASS typeof tmpKey.extractable is 'boolean' | |
138 PASS tmpKey.extractable is false | |
139 PASS tmpKey.algorithm.name is "HMAC" | |
140 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
141 PASS tmpKey.algorithm.length is 640 | |
142 PASS tmpKey.usages.join(',') is "sign,verify" | |
143 PASS: Mac should be [4ac41ab89f625c60125ed65ffa958c6b490ea670] and was | |
144 PASS verifyResult is true | |
145 PASS verifyResult is false | |
146 PASS tmpKey.type is "secret" | |
147 PASS typeof tmpKey.extractable is 'boolean' | |
148 PASS tmpKey.extractable is false | |
149 PASS tmpKey.algorithm.name is "HMAC" | |
150 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
151 PASS tmpKey.algorithm.length is 640 | |
152 PASS tmpKey.usages.join(',') is "sign,verify" | |
153 PASS: Mac should be [4ac41ab89f625c60125ed65ffa958c6b490ea670] and was | |
154 PASS verifyResult is true | |
155 PASS verifyResult is false | |
156 PASS tmpKey.type is "secret" | |
157 PASS typeof tmpKey.extractable is 'boolean' | |
158 PASS tmpKey.extractable is false | |
159 PASS tmpKey.algorithm.name is "HMAC" | |
160 PASS tmpKey.algorithm.hash.name is "SHA-1" | |
161 PASS tmpKey.algorithm.length is 640 | |
162 PASS tmpKey.usages.join(',') is "sign,verify" | |
163 PASS: Mac should be [4ac41ab89f625c60125ed65ffa958c6b490ea670] and was | |
164 PASS verifyResult is true | |
165 PASS verifyResult is false | |
166 PASS tmpKey.type is "secret" | |
167 PASS typeof tmpKey.extractable is 'boolean' | |
168 PASS tmpKey.extractable is false | |
169 PASS tmpKey.algorithm.name is "HMAC" | |
170 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
171 PASS tmpKey.algorithm.length is 320 | |
172 PASS tmpKey.usages.join(',') is "sign,verify" | |
173 PASS: Mac should be [769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a1660
5ac8b] and was | |
174 PASS verifyResult is true | |
175 PASS verifyResult is false | |
176 PASS tmpKey.type is "secret" | |
177 PASS typeof tmpKey.extractable is 'boolean' | |
178 PASS tmpKey.extractable is false | |
179 PASS tmpKey.algorithm.name is "HMAC" | |
180 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
181 PASS tmpKey.algorithm.length is 320 | |
182 PASS tmpKey.usages.join(',') is "sign,verify" | |
183 PASS: Mac should be [769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a1660
5ac8b] and was | |
184 PASS verifyResult is true | |
185 PASS verifyResult is false | |
186 PASS tmpKey.type is "secret" | |
187 PASS typeof tmpKey.extractable is 'boolean' | |
188 PASS tmpKey.extractable is false | |
189 PASS tmpKey.algorithm.name is "HMAC" | |
190 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
191 PASS tmpKey.algorithm.length is 320 | |
192 PASS tmpKey.usages.join(',') is "sign,verify" | |
193 PASS: Mac should be [769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a1660
5ac8b] and was | |
194 PASS verifyResult is true | |
195 PASS verifyResult is false | |
196 PASS tmpKey.type is "secret" | |
197 PASS typeof tmpKey.extractable is 'boolean' | |
198 PASS tmpKey.extractable is false | |
199 PASS tmpKey.algorithm.name is "HMAC" | |
200 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
201 PASS tmpKey.algorithm.length is 320 | |
202 PASS tmpKey.usages.join(',') is "sign,verify" | |
203 PASS: Mac should be [769f00d3e6a6cc1fb426a14a4f76c6462e6149726e0dee0ec0cf97a1660
5ac8b] and was | |
204 PASS verifyResult is true | |
205 PASS verifyResult is false | |
206 PASS tmpKey.type is "secret" | |
207 PASS typeof tmpKey.extractable is 'boolean' | |
208 PASS tmpKey.extractable is false | |
209 PASS tmpKey.algorithm.name is "HMAC" | |
210 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
211 PASS tmpKey.algorithm.length is 592 | |
212 PASS tmpKey.usages.join(',') is "sign,verify" | |
213 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425
2801b] and was | |
214 PASS verifyResult is true | |
215 PASS verifyResult is false | |
216 PASS tmpKey.type is "secret" | |
217 PASS typeof tmpKey.extractable is 'boolean' | |
218 PASS tmpKey.extractable is false | |
219 PASS tmpKey.algorithm.name is "HMAC" | |
220 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
221 PASS tmpKey.algorithm.length is 592 | |
222 PASS tmpKey.usages.join(',') is "sign,verify" | |
223 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425
2801b] and was | |
224 PASS verifyResult is true | |
225 PASS verifyResult is false | |
226 PASS tmpKey.type is "secret" | |
227 PASS typeof tmpKey.extractable is 'boolean' | |
228 PASS tmpKey.extractable is false | |
229 PASS tmpKey.algorithm.name is "HMAC" | |
230 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
231 PASS tmpKey.algorithm.length is 592 | |
232 PASS tmpKey.usages.join(',') is "sign,verify" | |
233 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425
2801b] and was | |
234 PASS verifyResult is true | |
235 PASS verifyResult is false | |
236 PASS tmpKey.type is "secret" | |
237 PASS typeof tmpKey.extractable is 'boolean' | |
238 PASS tmpKey.extractable is false | |
239 PASS tmpKey.algorithm.name is "HMAC" | |
240 PASS tmpKey.algorithm.hash.name is "SHA-256" | |
241 PASS tmpKey.algorithm.length is 592 | |
242 PASS tmpKey.usages.join(',') is "sign,verify" | |
243 PASS: Mac should be [4f1ee7cb36c58803a8721d4ac8c4cf8cae5d8832392eed2a96dc5969425
2801b] and was | |
244 PASS verifyResult is true | |
245 PASS verifyResult is false | |
246 PASS successfullyParsed is true | |
247 | |
248 TEST COMPLETE | |
249 | |
OLD | NEW |