OLD | NEW |
(Empty) | |
| 1 // TODO(eroman): Add tests with a digest other than SHA-1. |
| 2 { |
| 3 // This contains known answer tests for verify operation of RSA-PSS. |
| 4 |
| 5 // Although the following looks like JWK it is in NOT. |
| 6 // The difference is that the components are expressed in hexadecimal rather |
| 7 // than base64. |
| 8 |
| 9 // The keys are in SPKI format. |
| 10 "keys": { |
| 11 "key1": "30819F300D06092A864886F70D010101050003818D0030818902818100A56E4A0E7
01017589A5187DC7EA841D156F2EC0E36AD52A44DFEB1E61F7AD991D8C51056FFEDB162B4C0F283A
12A88A394DFF526AB7291CBB307CEABFCE0B1DFD5CD9508096D5B2B8B6DF5D671EF6377C0921CB23
C270A70E2598E6FF89D19F105ACC2D3F0CB35F29280E1386B6F64C4EF22E1E1F20D0CE8CFFB2249B
D9A21370203010001" |
| 12 }, |
| 13 |
| 14 "tests": [ |
| 15 // Example 1.1 from |
| 16 // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1-vec.zip (pss-vect.tx
t) |
| 17 { |
| 18 "hash": "sha-1", |
| 19 "key": "key1", |
| 20 "message": "cdc87da223d786df3b45e0bbbc721326d1ee2af806cc315475cc6f0d9c66e1
b62371d45ce2392e1ac92844c310102f156a0d8d52c1f4c40ba3aa65095786cb769757a6563ba958
fed0bcc984e8b517a3d5f515b23b8a41e74aa867693f90dfb061a6e86dfaaee64472c00e5f209457
29cbebe77f06ce78e08f4098fba41f9d6193c0317e8b60d4b6084acb42d29e3808a3bc372d85e331
170fcbf7cc72d0b71c296648b3a4d10f416295d0807aa625cab2744fd9ea8fd223c42537029828bd
16be02546f130fd2e33b936d2676e08aed1b73318b750a0167d0", |
| 21 "saltLength": 20, |
| 22 "signature": "9074308fb598e9701b2294388e52f971faac2b60a5145af185df5287b5ed
2887e57ce7fd44dc8634e407c8e0e4360bc226f3ec227f9d9e54638e8d31f5051215df6ebb9c2f95
79aa77598a38f914b5b9c1bd83c4e2f9f382a0d0aa3542ffee65984a601bc69eb28deb27dca12c82
c2d4c3f66cd500f1ff2b994d8a4e30cbb33c" |
| 23 }, |
| 24 |
| 25 // Example 1.4 from |
| 26 // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1-vec.zip (pss-vect.tx
t) |
| 27 { |
| 28 "hash": "sha-1", |
| 29 "key": "key1", |
| 30 "message": "bc656747fa9eafb3f0", |
| 31 "saltLength": 20, |
| 32 "signature": "4609793b23e9d09362dc21bb47da0b4f3a7622649a47d464019b9aeafe53
359c178c91cd58ba6bcb78be0346a7bc637f4b873d4bab38ee661f199634c547a1ad8442e03da015
b136e543f7ab07c0c13e4225b8de8cce25d4f6eb8400f81f7e1833b7ee6e334d370964ca79fdb872
b4d75223b5eeb08101591fb532d155a6de87" |
| 33 } |
| 34 ] |
| 35 } |
OLD | NEW |