OLD | NEW |
1 // This file contains known answers for ECDSA verify() testing. | 1 // This file contains known answers for ECDSA verify() testing. |
2 // The tests include successful and unsuccessful verifications. | 2 // The tests include successful and unsuccessful verifications. |
3 // | 3 // |
4 // These are the possible fields for each test: | 4 // These are the possible fields for each test: |
5 // "key_format" -- The format of the key data. Can be one of: {"jwk", "spki",
"nist". | 5 // "key_format" -- The format of the key data. Can be one of: {"jwk", "spki",
"nist". |
6 // "key" -- The public key data. Either a dictionary JWK, or hex encoded bytes
(for SPKI) | 6 // "key" -- The public key data. Either a dictionary JWK, or hex encoded bytes
(for SPKI) |
7 // "msg" -- The hex-encoded message to be verified | 7 // "msg" -- The hex-encoded message to be verified |
8 // "sig" -- The hex-encoded ECDSA signature as a concatenation of "r" and "s". | 8 // "sig" -- The hex-encoded ECDSA signature as a concatenation of "r" and "s". |
9 // "error" -- Optional. If provided, verify() is expected to fail with the ind
icated error. | 9 // "error" -- Optional. If provided, verify() is expected to fail with the ind
icated error. |
10 // "verify_result" -- Expected boolean result from verify(). | 10 // "verify_result" -- Expected boolean result from verify(). |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 "kty": "EC", | 154 "kty": "EC", |
155 "crv": "P-384", | 155 "crv": "P-384", |
156 "x": "CHSi4Lj_RI8OVDIeJ_Tx5k0GTN630m9FjDLpMBIPTlfchcJpP5d-7UqOzI25gbTZ", | 156 "x": "CHSi4Lj_RI8OVDIeJ_Tx5k0GTN630m9FjDLpMBIPTlfchcJpP5d-7UqOzI25gbTZ", |
157 "y": "H2lEbfT0xvXeGQA_RfiR0OvNL__bXIHAQOjWmUxDx_7tuYpKMe37NeiaMAE8O5Jn" | 157 "y": "H2lEbfT0xvXeGQA_RfiR0OvNL__bXIHAQOjWmUxDx_7tuYpKMe37NeiaMAE8O5Jn" |
158 }, | 158 }, |
159 "msg": "3f0783a58e66f3d2c0ccfb5fac3f09db6f8609d0592bc77fdffed9cf0e137d26a867
057665f3ad81beebbbdb723d5a47c580828f10f7347ab8a9c24d195f736dfae6eae37d88fe3b4735
e7c669a80ac1913e5c24c8c1d5cdb15f994f3ec2f1c774752e14f596b38c2fbf037616d608244d3d
a7d4badf351330f947e04cc350e7", | 159 "msg": "3f0783a58e66f3d2c0ccfb5fac3f09db6f8609d0592bc77fdffed9cf0e137d26a867
057665f3ad81beebbbdb723d5a47c580828f10f7347ab8a9c24d195f736dfae6eae37d88fe3b4735
e7c669a80ac1913e5c24c8c1d5cdb15f994f3ec2f1c774752e14f596b38c2fbf037616d608244d3d
a7d4badf351330f947e04cc350e7", |
160 "sig": "", | 160 "sig": "", |
161 "verify_result": false | 161 "verify_result": false |
162 } | 162 } |
163 ] | 163 ] |
OLD | NEW |