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

Side by Side Diff: LayoutTests/crypto/clone-ecKey-private-expected.txt

Issue 806913006: [WebCrypto] Move LayoutTests from crypto to crypto/subtle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update path for deserialize legacy tests 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
« no previous file with comments | « LayoutTests/crypto/clone-ecKey-private.html ('k') | LayoutTests/crypto/clone-ecKey-public.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Tests structured cloning of EC private keys
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS importedKey.extraProperty is "hi"
7 PASS importedKey.type is "private"
8 PASS typeof importedKey.extractable is 'boolean'
9 PASS importedKey.extractable is true
10 PASS importedKey.algorithm.name is "ECDSA"
11 PASS importedKey.algorithm.namedCurve is "P-256"
12 PASS importedKey.usages.join(',') is "sign"
13 PASS importedKey is not clonedKey
14 PASS clonedKey.extraProperty is undefined.
15 PASS clonedKey.type is "private"
16 PASS typeof clonedKey.extractable is 'boolean'
17 PASS clonedKey.extractable is true
18 PASS clonedKey.algorithm.name is "ECDSA"
19 PASS clonedKey.algorithm.namedCurve is "P-256"
20 PASS clonedKey.usages.join(',') is "sign"
21 Serialized key bytes: 3f004b050e0201098a01308187020100301306072a8648ce3d02010608 2a8648ce3d030107046d306b02010104201fe33950c5f461124ae992c2bdfdf1c73b1615f571bd56 7e60d19aa1f48cdf42a144034200047c110c66dcfda807f6e69e45ddb3c74f69a1484d203e8dc5ad a8e9a9dd7cb3c70df448986e51bde5d1576f99901f9c2c6a806a47fd907643a72b835597efc8c6
22 PASS: Cloned key exported data should be [308187020100301306072a8648ce3d02010608 2a8648ce3d030107046d306b02010104201fe33950c5f461124ae992c2bdfdf1c73b1615f571bd56 7e60d19aa1f48cdf42a144034200047c110c66dcfda807f6e69e45ddb3c74f69a1484d203e8dc5ad a8e9a9dd7cb3c70df448986e51bde5d1576f99901f9c2c6a806a47fd907643a72b835597efc8c6] and was
23
24 PASS importedKey.extraProperty is "hi"
25 PASS importedKey.type is "private"
26 PASS typeof importedKey.extractable is 'boolean'
27 PASS importedKey.extractable is true
28 PASS importedKey.algorithm.name is "ECDSA"
29 PASS importedKey.algorithm.namedCurve is "P-384"
30 PASS importedKey.usages.join(',') is "sign"
31 PASS importedKey is not clonedKey
32 PASS clonedKey.extraProperty is undefined.
33 PASS clonedKey.type is "private"
34 PASS typeof clonedKey.extractable is 'boolean'
35 PASS clonedKey.extractable is true
36 PASS clonedKey.algorithm.name is "ECDSA"
37 PASS clonedKey.algorithm.namedCurve is "P-384"
38 PASS clonedKey.usages.join(',') is "sign"
39 Serialized key bytes: 3f004b050e020209b9013081b6020100301006072a8648ce3d02010605 2b8104002204819e30819b0201010430a492ce8fa90084c227e1a32f7974d39e9ff67a7e8705ec34 19b35fb607582bebd461e0b1520ac76ec2dd4e9b63ebae71a16403620004e55fee6c49d8d523f5ce 7bf9c0425ce4ff650708b7de5cfb095901523979a7f042602db30854735369813b5c3f5ef86828f5 9cc5dc509892a988d38a8e2519de3d0c4fd0fbdb0993e38f18506c17606c5e24249246f1ce94983a 5361c5be983e00
40 PASS: Cloned key exported data should be [3081b6020100301006072a8648ce3d02010605 2b8104002204819e30819b0201010430a492ce8fa90084c227e1a32f7974d39e9ff67a7e8705ec34 19b35fb607582bebd461e0b1520ac76ec2dd4e9b63ebae71a16403620004e55fee6c49d8d523f5ce 7bf9c0425ce4ff650708b7de5cfb095901523979a7f042602db30854735369813b5c3f5ef86828f5 9cc5dc509892a988d38a8e2519de3d0c4fd0fbdb0993e38f18506c17606c5e24249246f1ce94983a 5361c5be983e] and was
41
42 PASS importedKey.extraProperty is "hi"
43 PASS importedKey.type is "private"
44 PASS typeof importedKey.extractable is 'boolean'
45 PASS importedKey.extractable is true
46 PASS importedKey.algorithm.name is "ECDSA"
47 PASS importedKey.algorithm.namedCurve is "P-521"
48 PASS importedKey.usages.join(',') is "sign"
49 PASS importedKey is not clonedKey
50 PASS clonedKey.extraProperty is undefined.
51 PASS clonedKey.type is "private"
52 PASS typeof clonedKey.extractable is 'boolean'
53 PASS clonedKey.extractable is true
54 PASS clonedKey.algorithm.name is "ECDSA"
55 PASS clonedKey.algorithm.namedCurve is "P-521"
56 PASS clonedKey.usages.join(',') is "sign"
57 Serialized key bytes: 3f004b050e020309f1013081ee020100301006072a8648ce3d02010605 2b810400230481d63081d3020101044201bd56bd106118eda246155bd43b42b8e13f0a6e25dd3bb3 76026fab4dc92b6157bc6dfec2d15dd3d0cf2a39aa68494042af48ba9601118da82c6f2108a3a203 ad74a181890381860004012fbcaeffa6a51f3ee4d3d2b51c5dec6d7c726ca353fc014ea2bf7cfbb9 b910d32cbfa6a00fe39b6cdb8946f22775398b2e233c0cf144d78c8a7742b5c7a3bb5d23009cdef8 23dd7bf9a79e8cceacd2e4527c231d0ae5967af0958e931d7ddccf2805a3e618dc3039fec9febbd3 3052fe4c0fee98f033106064982d88f4e03549d4a64d00
58 PASS: Cloned key exported data should be [3081ee020100301006072a8648ce3d02010605 2b810400230481d63081d3020101044201bd56bd106118eda246155bd43b42b8e13f0a6e25dd3bb3 76026fab4dc92b6157bc6dfec2d15dd3d0cf2a39aa68494042af48ba9601118da82c6f2108a3a203 ad74a181890381860004012fbcaeffa6a51f3ee4d3d2b51c5dec6d7c726ca353fc014ea2bf7cfbb9 b910d32cbfa6a00fe39b6cdb8946f22775398b2e233c0cf144d78c8a7742b5c7a3bb5d23009cdef8 23dd7bf9a79e8cceacd2e4527c231d0ae5967af0958e931d7ddccf2805a3e618dc3039fec9febbd3 3052fe4c0fee98f033106064982d88f4e03549d4a64d] and was
59
60 PASS importedKey.extraProperty is "hi"
61 PASS importedKey.type is "private"
62 PASS typeof importedKey.extractable is 'boolean'
63 PASS importedKey.extractable is false
64 PASS importedKey.algorithm.name is "ECDSA"
65 PASS importedKey.algorithm.namedCurve is "P-256"
66 PASS importedKey.usages.join(',') is "sign"
67 PASS importedKey is not clonedKey
68 PASS clonedKey.extraProperty is undefined.
69 PASS clonedKey.type is "private"
70 PASS typeof clonedKey.extractable is 'boolean'
71 PASS clonedKey.extractable is false
72 PASS clonedKey.algorithm.name is "ECDSA"
73 PASS clonedKey.algorithm.namedCurve is "P-256"
74 PASS clonedKey.usages.join(',') is "sign"
75 Serialized key bytes: 3f004b050e0201088a01308187020100301306072a8648ce3d02010608 2a8648ce3d030107046d306b02010104201fe33950c5f461124ae992c2bdfdf1c73b1615f571bd56 7e60d19aa1f48cdf42a144034200047c110c66dcfda807f6e69e45ddb3c74f69a1484d203e8dc5ad a8e9a9dd7cb3c70df448986e51bde5d1576f99901f9c2c6a806a47fd907643a72b835597efc8c6
76
77 PASS importedKey.extraProperty is "hi"
78 PASS importedKey.type is "private"
79 PASS typeof importedKey.extractable is 'boolean'
80 PASS importedKey.extractable is false
81 PASS importedKey.algorithm.name is "ECDSA"
82 PASS importedKey.algorithm.namedCurve is "P-384"
83 PASS importedKey.usages.join(',') is "sign"
84 PASS importedKey is not clonedKey
85 PASS clonedKey.extraProperty is undefined.
86 PASS clonedKey.type is "private"
87 PASS typeof clonedKey.extractable is 'boolean'
88 PASS clonedKey.extractable is false
89 PASS clonedKey.algorithm.name is "ECDSA"
90 PASS clonedKey.algorithm.namedCurve is "P-384"
91 PASS clonedKey.usages.join(',') is "sign"
92 Serialized key bytes: 3f004b050e020208b9013081b6020100301006072a8648ce3d02010605 2b8104002204819e30819b0201010430a492ce8fa90084c227e1a32f7974d39e9ff67a7e8705ec34 19b35fb607582bebd461e0b1520ac76ec2dd4e9b63ebae71a16403620004e55fee6c49d8d523f5ce 7bf9c0425ce4ff650708b7de5cfb095901523979a7f042602db30854735369813b5c3f5ef86828f5 9cc5dc509892a988d38a8e2519de3d0c4fd0fbdb0993e38f18506c17606c5e24249246f1ce94983a 5361c5be983e00
93
94 PASS importedKey.extraProperty is "hi"
95 PASS importedKey.type is "private"
96 PASS typeof importedKey.extractable is 'boolean'
97 PASS importedKey.extractable is false
98 PASS importedKey.algorithm.name is "ECDSA"
99 PASS importedKey.algorithm.namedCurve is "P-521"
100 PASS importedKey.usages.join(',') is "sign"
101 PASS importedKey is not clonedKey
102 PASS clonedKey.extraProperty is undefined.
103 PASS clonedKey.type is "private"
104 PASS typeof clonedKey.extractable is 'boolean'
105 PASS clonedKey.extractable is false
106 PASS clonedKey.algorithm.name is "ECDSA"
107 PASS clonedKey.algorithm.namedCurve is "P-521"
108 PASS clonedKey.usages.join(',') is "sign"
109 Serialized key bytes: 3f004b050e020308f1013081ee020100301006072a8648ce3d02010605 2b810400230481d63081d3020101044201bd56bd106118eda246155bd43b42b8e13f0a6e25dd3bb3 76026fab4dc92b6157bc6dfec2d15dd3d0cf2a39aa68494042af48ba9601118da82c6f2108a3a203 ad74a181890381860004012fbcaeffa6a51f3ee4d3d2b51c5dec6d7c726ca353fc014ea2bf7cfbb9 b910d32cbfa6a00fe39b6cdb8946f22775398b2e233c0cf144d78c8a7742b5c7a3bb5d23009cdef8 23dd7bf9a79e8cceacd2e4527c231d0ae5967af0958e931d7ddccf2805a3e618dc3039fec9febbd3 3052fe4c0fee98f033106064982d88f4e03549d4a64d00
110
111 PASS importedKey.extraProperty is "hi"
112 PASS importedKey.type is "private"
113 PASS typeof importedKey.extractable is 'boolean'
114 PASS importedKey.extractable is true
115 PASS importedKey.algorithm.name is "ECDH"
116 PASS importedKey.algorithm.namedCurve is "P-256"
117 PASS importedKey.usages.join(',') is "deriveBits"
118 PASS importedKey is not clonedKey
119 PASS clonedKey.extraProperty is undefined.
120 PASS clonedKey.type is "private"
121 PASS typeof clonedKey.extractable is 'boolean'
122 PASS clonedKey.extractable is true
123 PASS clonedKey.algorithm.name is "ECDH"
124 PASS clonedKey.algorithm.namedCurve is "P-256"
125 PASS clonedKey.usages.join(',') is "deriveBits"
126 Serialized key bytes: 3f004b050f020181028a01308187020100301306072a8648ce3d020106 082a8648ce3d030107046d306b02010104201fe33950c5f461124ae992c2bdfdf1c73b1615f571bd 567e60d19aa1f48cdf42a144034200047c110c66dcfda807f6e69e45ddb3c74f69a1484d203e8dc5 ada8e9a9dd7cb3c70df448986e51bde5d1576f99901f9c2c6a806a47fd907643a72b835597efc8c6 00
127 PASS: Cloned key exported data should be [308187020100301306072a8648ce3d02010608 2a8648ce3d030107046d306b02010104201fe33950c5f461124ae992c2bdfdf1c73b1615f571bd56 7e60d19aa1f48cdf42a144034200047c110c66dcfda807f6e69e45ddb3c74f69a1484d203e8dc5ad a8e9a9dd7cb3c70df448986e51bde5d1576f99901f9c2c6a806a47fd907643a72b835597efc8c6] and was
128
129 PASS importedKey.extraProperty is "hi"
130 PASS importedKey.type is "private"
131 PASS typeof importedKey.extractable is 'boolean'
132 PASS importedKey.extractable is true
133 PASS importedKey.algorithm.name is "ECDH"
134 PASS importedKey.algorithm.namedCurve is "P-384"
135 PASS importedKey.usages.join(',') is "deriveBits"
136 PASS importedKey is not clonedKey
137 PASS clonedKey.extraProperty is undefined.
138 PASS clonedKey.type is "private"
139 PASS typeof clonedKey.extractable is 'boolean'
140 PASS clonedKey.extractable is true
141 PASS clonedKey.algorithm.name is "ECDH"
142 PASS clonedKey.algorithm.namedCurve is "P-384"
143 PASS clonedKey.usages.join(',') is "deriveBits"
144 Serialized key bytes: 3f004b050f02028102b9013081b6020100301006072a8648ce3d020106 052b8104002204819e30819b0201010430a492ce8fa90084c227e1a32f7974d39e9ff67a7e8705ec 3419b35fb607582bebd461e0b1520ac76ec2dd4e9b63ebae71a16403620004e55fee6c49d8d523f5 ce7bf9c0425ce4ff650708b7de5cfb095901523979a7f042602db30854735369813b5c3f5ef86828 f59cc5dc509892a988d38a8e2519de3d0c4fd0fbdb0993e38f18506c17606c5e24249246f1ce9498 3a5361c5be983e
145 PASS: Cloned key exported data should be [3081b6020100301006072a8648ce3d02010605 2b8104002204819e30819b0201010430a492ce8fa90084c227e1a32f7974d39e9ff67a7e8705ec34 19b35fb607582bebd461e0b1520ac76ec2dd4e9b63ebae71a16403620004e55fee6c49d8d523f5ce 7bf9c0425ce4ff650708b7de5cfb095901523979a7f042602db30854735369813b5c3f5ef86828f5 9cc5dc509892a988d38a8e2519de3d0c4fd0fbdb0993e38f18506c17606c5e24249246f1ce94983a 5361c5be983e] and was
146
147 PASS importedKey.extraProperty is "hi"
148 PASS importedKey.type is "private"
149 PASS typeof importedKey.extractable is 'boolean'
150 PASS importedKey.extractable is true
151 PASS importedKey.algorithm.name is "ECDH"
152 PASS importedKey.algorithm.namedCurve is "P-521"
153 PASS importedKey.usages.join(',') is "deriveBits"
154 PASS importedKey is not clonedKey
155 PASS clonedKey.extraProperty is undefined.
156 PASS clonedKey.type is "private"
157 PASS typeof clonedKey.extractable is 'boolean'
158 PASS clonedKey.extractable is true
159 PASS clonedKey.algorithm.name is "ECDH"
160 PASS clonedKey.algorithm.namedCurve is "P-521"
161 PASS clonedKey.usages.join(',') is "deriveBits"
162 Serialized key bytes: 3f004b050f02038102f1013081ee020100301006072a8648ce3d020106 052b810400230481d63081d3020101044201bd56bd106118eda246155bd43b42b8e13f0a6e25dd3b b376026fab4dc92b6157bc6dfec2d15dd3d0cf2a39aa68494042af48ba9601118da82c6f2108a3a2 03ad74a181890381860004012fbcaeffa6a51f3ee4d3d2b51c5dec6d7c726ca353fc014ea2bf7cfb b9b910d32cbfa6a00fe39b6cdb8946f22775398b2e233c0cf144d78c8a7742b5c7a3bb5d23009cde f823dd7bf9a79e8cceacd2e4527c231d0ae5967af0958e931d7ddccf2805a3e618dc3039fec9febb d33052fe4c0fee98f033106064982d88f4e03549d4a64d
163 PASS: Cloned key exported data should be [3081ee020100301006072a8648ce3d02010605 2b810400230481d63081d3020101044201bd56bd106118eda246155bd43b42b8e13f0a6e25dd3bb3 76026fab4dc92b6157bc6dfec2d15dd3d0cf2a39aa68494042af48ba9601118da82c6f2108a3a203 ad74a181890381860004012fbcaeffa6a51f3ee4d3d2b51c5dec6d7c726ca353fc014ea2bf7cfbb9 b910d32cbfa6a00fe39b6cdb8946f22775398b2e233c0cf144d78c8a7742b5c7a3bb5d23009cdef8 23dd7bf9a79e8cceacd2e4527c231d0ae5967af0958e931d7ddccf2805a3e618dc3039fec9febbd3 3052fe4c0fee98f033106064982d88f4e03549d4a64d] and was
164
165 PASS importedKey.extraProperty is "hi"
166 PASS importedKey.type is "private"
167 PASS typeof importedKey.extractable is 'boolean'
168 PASS importedKey.extractable is false
169 PASS importedKey.algorithm.name is "ECDH"
170 PASS importedKey.algorithm.namedCurve is "P-256"
171 PASS importedKey.usages.join(',') is "deriveBits"
172 PASS importedKey is not clonedKey
173 PASS clonedKey.extraProperty is undefined.
174 PASS clonedKey.type is "private"
175 PASS typeof clonedKey.extractable is 'boolean'
176 PASS clonedKey.extractable is false
177 PASS clonedKey.algorithm.name is "ECDH"
178 PASS clonedKey.algorithm.namedCurve is "P-256"
179 PASS clonedKey.usages.join(',') is "deriveBits"
180 Serialized key bytes: 3f004b050f020180028a01308187020100301306072a8648ce3d020106 082a8648ce3d030107046d306b02010104201fe33950c5f461124ae992c2bdfdf1c73b1615f571bd 567e60d19aa1f48cdf42a144034200047c110c66dcfda807f6e69e45ddb3c74f69a1484d203e8dc5 ada8e9a9dd7cb3c70df448986e51bde5d1576f99901f9c2c6a806a47fd907643a72b835597efc8c6 00
181
182 PASS importedKey.extraProperty is "hi"
183 PASS importedKey.type is "private"
184 PASS typeof importedKey.extractable is 'boolean'
185 PASS importedKey.extractable is false
186 PASS importedKey.algorithm.name is "ECDH"
187 PASS importedKey.algorithm.namedCurve is "P-384"
188 PASS importedKey.usages.join(',') is "deriveBits"
189 PASS importedKey is not clonedKey
190 PASS clonedKey.extraProperty is undefined.
191 PASS clonedKey.type is "private"
192 PASS typeof clonedKey.extractable is 'boolean'
193 PASS clonedKey.extractable is false
194 PASS clonedKey.algorithm.name is "ECDH"
195 PASS clonedKey.algorithm.namedCurve is "P-384"
196 PASS clonedKey.usages.join(',') is "deriveBits"
197 Serialized key bytes: 3f004b050f02028002b9013081b6020100301006072a8648ce3d020106 052b8104002204819e30819b0201010430a492ce8fa90084c227e1a32f7974d39e9ff67a7e8705ec 3419b35fb607582bebd461e0b1520ac76ec2dd4e9b63ebae71a16403620004e55fee6c49d8d523f5 ce7bf9c0425ce4ff650708b7de5cfb095901523979a7f042602db30854735369813b5c3f5ef86828 f59cc5dc509892a988d38a8e2519de3d0c4fd0fbdb0993e38f18506c17606c5e24249246f1ce9498 3a5361c5be983e
198
199 PASS importedKey.extraProperty is "hi"
200 PASS importedKey.type is "private"
201 PASS typeof importedKey.extractable is 'boolean'
202 PASS importedKey.extractable is false
203 PASS importedKey.algorithm.name is "ECDH"
204 PASS importedKey.algorithm.namedCurve is "P-521"
205 PASS importedKey.usages.join(',') is "deriveBits"
206 PASS importedKey is not clonedKey
207 PASS clonedKey.extraProperty is undefined.
208 PASS clonedKey.type is "private"
209 PASS typeof clonedKey.extractable is 'boolean'
210 PASS clonedKey.extractable is false
211 PASS clonedKey.algorithm.name is "ECDH"
212 PASS clonedKey.algorithm.namedCurve is "P-521"
213 PASS clonedKey.usages.join(',') is "deriveBits"
214 Serialized key bytes: 3f004b050f02038002f1013081ee020100301006072a8648ce3d020106 052b810400230481d63081d3020101044201bd56bd106118eda246155bd43b42b8e13f0a6e25dd3b b376026fab4dc92b6157bc6dfec2d15dd3d0cf2a39aa68494042af48ba9601118da82c6f2108a3a2 03ad74a181890381860004012fbcaeffa6a51f3ee4d3d2b51c5dec6d7c726ca353fc014ea2bf7cfb b9b910d32cbfa6a00fe39b6cdb8946f22775398b2e233c0cf144d78c8a7742b5c7a3bb5d23009cde f823dd7bf9a79e8cceacd2e4527c231d0ae5967af0958e931d7ddccf2805a3e618dc3039fec9febb d33052fe4c0fee98f033106064982d88f4e03549d4a64d
215
216 PASS successfullyParsed is true
217
218 TEST COMPLETE
219
OLDNEW
« no previous file with comments | « LayoutTests/crypto/clone-ecKey-private.html ('k') | LayoutTests/crypto/clone-ecKey-public.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698