• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This is the same test as rsa-pss-sha256-salt10.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
7-----BEGIN PUBLIC KEY-----
8MIHRMEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZ
9IAWUDBAIBBQCiAwIBCgOBiwAwgYcCgYEAvkmbXn8GyD+gKT4xRlyOtrWK+SC65Sp7W5v+t6py2x
10JkES6z/UMdMaKn5QlBVmkpSUoOiR7VYTkYtLUbDR+5d4Oyas99DzhM+zX00oJPXdOAYjomvxgLY
115YcYZ3NsgyuQG8i9uJ2yAo3JZSQz+tywacahPGEbTMId7o+MQHsnHsCARE=
12-----END PUBLIC KEY-----
13
14$ openssl asn1parse -i < [PUBLIC KEY]
15    0:d=0  hl=3 l= 209 cons: SEQUENCE
16    3:d=1  hl=2 l=  65 cons:  SEQUENCE
17    5:d=2  hl=2 l=   9 prim:   OBJECT            :rsassaPss
18   16:d=2  hl=2 l=  52 cons:   SEQUENCE
19   18:d=3  hl=2 l=  15 cons:    cont [ 0 ]
20   20:d=4  hl=2 l=  13 cons:     SEQUENCE
21   22:d=5  hl=2 l=   9 prim:      OBJECT            :sha256
22   33:d=5  hl=2 l=   0 prim:      NULL
23   35:d=3  hl=2 l=  28 cons:    cont [ 1 ]
24   37:d=4  hl=2 l=  26 cons:     SEQUENCE
25   39:d=5  hl=2 l=   9 prim:      OBJECT            :mgf1
26   50:d=5  hl=2 l=  13 cons:      SEQUENCE
27   52:d=6  hl=2 l=   9 prim:       OBJECT            :sha256
28   63:d=6  hl=2 l=   0 prim:       NULL
29   65:d=3  hl=2 l=   3 cons:    cont [ 2 ]
30   67:d=4  hl=2 l=   1 prim:     INTEGER           :0A
31   70:d=1  hl=3 l= 139 prim:  BIT STRING
32
33
34
35-----BEGIN ALGORITHM-----
36MEEGCSqGSIb3DQEBCjA0oA8wDQYJYIZIAWUDBAIBBQChHDAaBgkqhkiG9w0BAQgwDQYJYIZIAWU
37DBAIBBQCiAwIBCg==
38-----END ALGORITHM-----
39
40$ openssl asn1parse -i < [ALGORITHM]
41    0:d=0  hl=2 l=  65 cons: SEQUENCE
42    2:d=1  hl=2 l=   9 prim:  OBJECT            :rsassaPss
43   13:d=1  hl=2 l=  52 cons:  SEQUENCE
44   15:d=2  hl=2 l=  15 cons:   cont [ 0 ]
45   17:d=3  hl=2 l=  13 cons:    SEQUENCE
46   19:d=4  hl=2 l=   9 prim:     OBJECT            :sha256
47   30:d=4  hl=2 l=   0 prim:     NULL
48   32:d=2  hl=2 l=  28 cons:   cont [ 1 ]
49   34:d=3  hl=2 l=  26 cons:    SEQUENCE
50   36:d=4  hl=2 l=   9 prim:     OBJECT            :mgf1
51   47:d=4  hl=2 l=  13 cons:     SEQUENCE
52   49:d=5  hl=2 l=   9 prim:      OBJECT            :sha256
53   60:d=5  hl=2 l=   0 prim:      NULL
54   62:d=2  hl=2 l=   3 cons:   cont [ 2 ]
55   64:d=3  hl=2 l=   1 prim:    INTEGER           :0A
56
57
58
59-----BEGIN DATA-----
60x/UnD8pyX5vRn1GajXzKPMXAeQJAKfO65RD5sCFA/iOJCOT2wY8HqJxofIaEZpsfHbK6+SUaPIK
61frMtJMIThbsnijViGgHSl1iIWZ91uUo0W/iyfPbTPr2xNzoyEOa84zqqqnOLsrnvI9KWlXjv5bf
62nNV1xPnLMnlRuM3+QIcWg=
63-----END DATA-----
64
65
66
67-----BEGIN SIGNATURE-----
68A4GBABHhafL9QLB2Qbl2iiqxmWX7bCfxD88DI/zG0S608cBrMw3aoepQRAevop3p6+A3T+nR59D
69/vV/Bzzo0RuQUVBXSqyT3ibNGTFxDola7wdaSz38EgB2sW7QBpKA6t9VyioYMGeGk3Hl8pULIID
70zsLmAesMUfVn8u2gIrC5693u76
71-----END SIGNATURE-----
72
73$ openssl asn1parse -i < [SIGNATURE]
74    0:d=0  hl=3 l= 129 prim: BIT STRING
75