OLD | NEW |
(Empty) | |
| 1 The key, message, and signature come from Example 1.1 of: |
| 2 ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1-vec.zip (pss-vect.txt) |
| 3 |
| 4 (The algorithm DER was synthesized to match, and the signature enclosed in a BIT
STRING). |
| 5 |
| 6 It uses an RSA key with modulus length of 1024 bits, PSS padding, |
| 7 SHA-1 as the digest, MGF1 with SHA-1, and salt length of 20. |
| 8 |
| 9 |
| 10 |
| 11 -----BEGIN PUBLIC KEY----- |
| 12 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH |
| 13 mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL |
| 14 I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB |
| 15 -----END PUBLIC KEY----- |
| 16 |
| 17 $ openssl asn1parse -i < [PUBLIC KEY] |
| 18 0:d=0 hl=3 l= 159 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= 141 prim: BIT STRING |
| 23 |
| 24 |
| 25 |
| 26 -----BEGIN ALGORITHM----- |
| 27 MA0GCSqGSIb3DQEBCjAA |
| 28 -----END ALGORITHM----- |
| 29 |
| 30 $ openssl asn1parse -i < [ALGORITHM] |
| 31 0:d=0 hl=2 l= 13 cons: SEQUENCE |
| 32 2:d=1 hl=2 l= 9 prim: OBJECT :rsassaPss |
| 33 13:d=1 hl=2 l= 0 cons: SEQUENCE |
| 34 |
| 35 |
| 36 |
| 37 -----BEGIN DATA----- |
| 38 zch9oiPXht87ReC7vHITJtHuKvgGzDFUdcxvDZxm4bYjcdRc4jkuGskoRMMQEC8Vag2NUsH0xAu |
| 39 jqmUJV4bLdpdXplY7qVj+0LzJhOi1F6PV9RWyO4pB50qoZ2k/kN+wYabobfqu5kRywA5fIJRXKc |
| 40 vr538Gznjgj0CY+6QfnWGTwDF+i2DUtghKy0LSnjgIo7w3LYXjMRcPy/fMctC3HClmSLOk0Q9BY |
| 41 pXQgHqmJcqydE/Z6o/SI8QlNwKYKL0WvgJUbxMP0uM7k20mduCK7RtzMYt1CgFn0A== |
| 42 -----END DATA----- |
| 43 |
| 44 |
| 45 |
| 46 -----BEGIN SIGNATURE----- |
| 47 A4GBAJB0MI+1mOlwGyKUOI5S+XH6rCtgpRRa8YXfUoe17SiH5Xzn/UTchjTkB8jg5DYLwibz7CJ |
| 48 /nZ5UY46NMfUFEhXfbrucL5V5qndZijj5FLW5wb2DxOL584Kg0Ko1Qv/uZZhKYBvGnrKN6yfcoS |
| 49 yCwtTD9mzVAPH/K5lNik4wy7M8 |
| 50 -----END SIGNATURE----- |
| 51 |
| 52 $ openssl asn1parse -i < [SIGNATURE] |
| 53 0:d=0 hl=3 l= 129 prim: BIT STRING |
OLD | NEW |