• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This is the same test as rsa-pss-sha256.pem except instead of specifying
2the SPKI using rsaEncryption it is specified using rsaPss along with
3parameters that match those of the signature algorithm.
4
5
6$ openssl asn1parse -i < [PUBLIC KEY]
7    0:d=0  hl=4 l= 342 cons: SEQUENCE
8    4:d=1  hl=2 l=  65 cons:  SEQUENCE
9    6:d=2  hl=2 l=   9 prim:   OBJECT            :rsassaPss
10   17:d=2  hl=2 l=  52 cons:   SEQUENCE
11   19:d=3  hl=2 l=  15 cons:    cont [ 0 ]
12   21:d=4  hl=2 l=  13 cons:     SEQUENCE
13   23:d=5  hl=2 l=   9 prim:      OBJECT            :sha256
14   34:d=5  hl=2 l=   0 prim:      NULL
15   36:d=3  hl=2 l=  28 cons:    cont [ 1 ]
16   38:d=4  hl=2 l=  26 cons:     SEQUENCE
17   40:d=5  hl=2 l=   9 prim:      OBJECT            :mgf1
18   51:d=5  hl=2 l=  13 cons:      SEQUENCE
19   53:d=6  hl=2 l=   9 prim:       OBJECT            :sha256
20   64:d=6  hl=2 l=   0 prim:       NULL
21   66:d=3  hl=2 l=   3 cons:    cont [ 2 ]
22   68:d=4  hl=2 l=   1 prim:     INTEGER           :20
23   71:d=1  hl=4 l= 271 prim:  BIT STRING
24-----BEGIN PUBLIC KEY-----
25MIIBVjBBBgkqhkiG9w0BAQowNKAPMA0GCWCGSAFlAwQCAQUAoRwwGgYJKoZIhvcN
26AQEIMA0GCWCGSAFlAwQCAQUAogMCASADggEPADCCAQoCggEBAJ+eocEuecvSRuYF
275E0C15v0OB0iXT/5BAoM7TDELaoIr/kHS9CeTO20DW1Cu2YWbeaREuU9B4yXCBDQ
28b4Vxc1Gd6wTjKeMhEhS1qEi9Kri9AwGkV/2bmak/jsOiz3ZMJb9SaSodN8pasQhm
298NWyBSBLBa6ekA53Uj1SNYn3dkH2Hvn3UULhfHpmhrudDikUoM4kAedCRyg9M0bI
30dXIFHEE8hlIhY9p3RV8NQD88pVNvqLmLq5jd2Qq73D9if6oEHQMw2EUP26v7+yzW
31EHPhrnfhCMxN/vbKcm51kYtmi65xsMAQmbP26nOusGitKcx/M/5g8GwdmUiGpegE
32RdIllF0CAwEAAQ==
33-----END PUBLIC KEY-----
34
35$ openssl asn1parse -i < [ALGORITHM]
36    0:d=0  hl=2 l=  65 cons: SEQUENCE
37    2:d=1  hl=2 l=   9 prim:  OBJECT            :rsassaPss
38   13:d=1  hl=2 l=  52 cons:  SEQUENCE
39   15:d=2  hl=2 l=  15 cons:   cont [ 0 ]
40   17:d=3  hl=2 l=  13 cons:    SEQUENCE
41   19:d=4  hl=2 l=   9 prim:     OBJECT            :sha256
42   30:d=4  hl=2 l=   0 prim:     NULL
43   32:d=2  hl=2 l=  28 cons:   cont [ 1 ]
44   34:d=3  hl=2 l=  26 cons:    SEQUENCE
45   36:d=4  hl=2 l=   9 prim:     OBJECT            :mgf1
46   47:d=4  hl=2 l=  13 cons:     SEQUENCE
47   49:d=5  hl=2 l=   9 prim:      OBJECT            :sha256
48   60:d=5  hl=2 l=   0 prim:      NULL
49   62:d=2  hl=2 l=   3 cons:   cont [ 2 ]
50   64:d=3  hl=2 l=   1 prim:    INTEGER           :20
51-----BEGIN ALGORITHM-----
52MEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgw
53DQYJYIZIAWUDBAIBBQCiAwIBIA==
54-----END ALGORITHM-----
55
56-----BEGIN DATA-----
57x/UnD8pyX5vRn1GajXzKPMXAeQJAKfO65RD5sCFA/iOJCOT2wY8HqJxofIaEZpsfHbK6+SUaPIK
58frMtJMIThbsnijViGgHSl1iIWZ91uUo0W/iyfPbTPr2xNzoyEOa84zqqqnOLsrnvI9KWlXjv5bf
59nNV1xPnLMnlRuM3+QIcWg=
60-----END DATA-----
61
62$ openssl asn1parse -i < [SIGNATURE]
63    0:d=0  hl=4 l= 257 prim: BIT STRING
64-----BEGIN SIGNATURE-----
65A4IBAQAhgPL8PV86dM9W4p1s7IWu8+9oXpPnFgutfKffNrPRny+7zUmJFER/JUDB
667gnb4qiDRqKftRIpizyrZb0M4Vrhq1CyINHM1anqinZESRy8npVvhrYv4QiHZnYX
67vXtDjgBg3Rw2DufTOKgxs+nX8a050aHsuMulTRCwR6NuHkChJlJfg6p0b1losgcL
68jKlu7EqTUUkY7Mt0WyCobxIKGbgrSVJsjV8La6rPh3LpA3d9i0Ik1HkyM1w+7utn
69h2eT/FKO8W1BtB8haiyuhatuZ1c/2uttLBSZa8hK/2W4YuomUEoWz8JIP9xXQkoq
70u0P2zB7MXW5jPJwpUX0fKXqFNSry
71-----END SIGNATURE-----
72