OLD | NEW |
(Empty) | |
| 1 The key, message, and signature come from: |
| 2 http://csrc.nist.gov/groups/STM/cavp/documents/dss/186-2rsatestvectors.zip (SigV
erPSS_186-3.rsp) |
| 3 |
| 4 (The algorithm DER was synthesized to match, and the signature wrapped in a BIT
STRING). |
| 5 |
| 6 It uses an RSA key with modulus length of 1024 bits, PSS padding, |
| 7 SHA-256 as the digest, MGF1 with SHA-256, and salt length of 10. |
| 8 |
| 9 |
| 10 |
| 11 -----BEGIN PUBLIC KEY----- |
| 12 MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC+SZtefwbIP6ApPjFGXI62tYr5ILrlKntbm/6 |
| 13 3qnLbEmQRLrP9Qx0xoqflCUFWaSlJSg6JHtVhORi0tRsNH7l3g7Jqz30POEz7NfTSgk9d04BiOi |
| 14 a/GAtjlhxhnc2yDK5AbyL24nbICjcllJDP63LBpxqE8YRtMwh3uj4xAeycewIBEQ== |
| 15 -----END PUBLIC KEY----- |
| 16 |
| 17 $ openssl asn1parse -i < [PUBLIC KEY] |
| 18 0:d=0 hl=3 l= 157 cons: SEQUENCE |
| 19 3:d=1 hl=2 l= 13 cons: SEQUENCE |
| 20 5:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption |
| 21 16:d=2 hl=2 l= 0 prim: NULL |
| 22 18:d=1 hl=3 l= 139 prim: BIT STRING |
| 23 |
| 24 |
| 25 |
| 26 -----BEGIN ALGORITHM----- |
| 27 MEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZIAWU |
| 28 DBAIBBQCiAwIBCg== |
| 29 -----END ALGORITHM----- |
| 30 |
| 31 $ openssl asn1parse -i < [ALGORITHM] |
| 32 0:d=0 hl=2 l= 65 cons: SEQUENCE |
| 33 2:d=1 hl=2 l= 9 prim: OBJECT :rsassaPss |
| 34 13:d=1 hl=2 l= 52 cons: SEQUENCE |
| 35 15:d=2 hl=2 l= 15 cons: cont [ 0 ] |
| 36 17:d=3 hl=2 l= 13 cons: SEQUENCE |
| 37 19:d=4 hl=2 l= 9 prim: OBJECT :sha256 |
| 38 30:d=4 hl=2 l= 0 prim: NULL |
| 39 32:d=2 hl=2 l= 28 cons: cont [ 1 ] |
| 40 34:d=3 hl=2 l= 26 cons: SEQUENCE |
| 41 36:d=4 hl=2 l= 9 prim: OBJECT :mgf1 |
| 42 47:d=4 hl=2 l= 13 cons: SEQUENCE |
| 43 49:d=5 hl=2 l= 9 prim: OBJECT :sha256 |
| 44 60:d=5 hl=2 l= 0 prim: NULL |
| 45 62:d=2 hl=2 l= 3 cons: cont [ 2 ] |
| 46 64:d=3 hl=2 l= 1 prim: INTEGER :0A |
| 47 |
| 48 |
| 49 |
| 50 -----BEGIN DATA----- |
| 51 x/UnD8pyX5vRn1GajXzKPMXAeQJAKfO65RD5sCFA/iOJCOT2wY8HqJxofIaEZpsfHbK6+SUaPIK |
| 52 frMtJMIThbsnijViGgHSl1iIWZ91uUo0W/iyfPbTPr2xNzoyEOa84zqqqnOLsrnvI9KWlXjv5bf |
| 53 nNV1xPnLMnlRuM3+QIcWg= |
| 54 -----END DATA----- |
| 55 |
| 56 |
| 57 |
| 58 -----BEGIN SIGNATURE----- |
| 59 A4GBABHhafL9QLB2Qbl2iiqxmWX7bCfxD88DI/zG0S608cBrMw3aoepQRAevop3p6+A3T+nR59D |
| 60 /vV/Bzzo0RuQUVBXSqyT3ibNGTFxDola7wdaSz38EgB2sW7QBpKA6t9VyioYMGeGk3Hl8pULIID |
| 61 zsLmAesMUfVn8u2gIrC5693u76 |
| 62 -----END SIGNATURE----- |
| 63 |
| 64 $ openssl asn1parse -i < [SIGNATURE] |
| 65 0:d=0 hl=3 l= 129 prim: BIT STRING |
OLD | NEW |