• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This is the same test as rsa-pss-sha1-salt20.pem, except the public key's
2algorithm identifier has been changed from rsaEncryption (1.2.840.113549.1.1.1)
3to rsaPss (1.2.840.113549.1.1.10). Note that the PSS parameters have been
4encoded as NULL which is incorrect.
5
6
7
8-----BEGIN PUBLIC KEY-----
9MIGfMA0GCSqGSIb3DQEBCgUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH
10mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL
11I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB
12-----END PUBLIC KEY-----
13
14$ openssl asn1parse -i < [PUBLIC KEY]
15    0:d=0  hl=3 l= 159 cons: SEQUENCE
16    3:d=1  hl=2 l=  13 cons:  SEQUENCE
17    5:d=2  hl=2 l=   9 prim:   OBJECT            :rsassaPss
18   16:d=2  hl=2 l=   0 prim:   NULL
19   18:d=1  hl=3 l= 141 prim:  BIT STRING
20
21
22
23-----BEGIN ALGORITHM-----
24MA0GCSqGSIb3DQEBCjAA
25-----END ALGORITHM-----
26
27$ openssl asn1parse -i < [ALGORITHM]
28    0:d=0  hl=2 l=  13 cons: SEQUENCE
29    2:d=1  hl=2 l=   9 prim:  OBJECT            :rsassaPss
30   13:d=1  hl=2 l=   0 cons:  SEQUENCE
31
32
33
34-----BEGIN DATA-----
35zch9oiPXht87ReC7vHITJtHuKvgGzDFUdcxvDZxm4bYjcdRc4jkuGskoRMMQEC8Vag2NUsH0xAu
36jqmUJV4bLdpdXplY7qVj+0LzJhOi1F6PV9RWyO4pB50qoZ2k/kN+wYabobfqu5kRywA5fIJRXKc
37vr538Gznjgj0CY+6QfnWGTwDF+i2DUtghKy0LSnjgIo7w3LYXjMRcPy/fMctC3HClmSLOk0Q9BY
38pXQgHqmJcqydE/Z6o/SI8QlNwKYKL0WvgJUbxMP0uM7k20mduCK7RtzMYt1CgFn0A==
39-----END DATA-----
40
41
42
43-----BEGIN SIGNATURE-----
44A4GBAJB0MI+1mOlwGyKUOI5S+XH6rCtgpRRa8YXfUoe17SiH5Xzn/UTchjTkB8jg5DYLwibz7CJ
45/nZ5UY46NMfUFEhXfbrucL5V5qndZijj5FLW5wb2DxOL584Kg0Ko1Qv/uZZhKYBvGnrKN6yfcoS
46yCwtTD9mzVAPH/K5lNik4wy7M8
47-----END SIGNATURE-----
48
49$ openssl asn1parse -i < [SIGNATURE]
50    0:d=0  hl=3 l= 129 prim: BIT STRING
51