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