1 This is the same test as rsa-pkcs1-sha256.pem except the SPKI has been tampered
2 with. The parameters have been changed from NULL to an INTEGER.
4 This was done by changing:
12 -----BEGIN PUBLIC KEY-----
13 MIGfMA0GCSqGSIb3DQEBAQIAA4GNADCBiQKBgQCqR+B2Mj1irNp1JnY2zQIQRQPz7ybs6mUjHT3
14 hf5APyaig2u6fBPThqxssgg0YviqIj/70hVK/JXcqP1zgR5AhsA0agnwAjfB/ow4EH+3HEYV52q
15 pxN98pUxC+1l2hgVtn8xCS/JGyjK+6dv+lZw3ixJoX2RjVtdJ4/cn318EhhQIDAQAB
16 -----END PUBLIC KEY-----
18 $ openssl asn1parse -i < [PUBLIC KEY]
19 0:d=0 hl=3 l= 159 cons: SEQUENCE
20 3:d=1 hl=2 l= 13 cons: SEQUENCE
21 5:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption
22 16:d=2 hl=2 l= 0 prim: INTEGER :00
23 18:d=1 hl=3 l= 141 prim: BIT STRING
27 -----BEGIN ALGORITHM-----
29 -----END ALGORITHM-----
31 $ openssl asn1parse -i < [ALGORITHM]
32 0:d=0 hl=2 l= 13 cons: SEQUENCE
33 2:d=1 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
34 13:d=1 hl=2 l= 0 prim: NULL
39 MIIB46ADAgECAgkA3l4tFOVii0UwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCQVUxEzARBgN
40 VBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEPMA0GA1
41 UEAwwGTXkga2V5MB4XDTE1MDcwMjE3MDYzOVoXDTE2MDcwMTE3MDYzOVowVjELMAkGA1UEBhMCQ
42 VUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0
43 ZDEPMA0GA1UEAwwGTXkga2V5MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqR+B2Mj1irNp
44 1JnY2zQIQRQPz7ybs6mUjHT3hf5APyaig2u6fBPThqxssgg0YviqIj/70hVK/JXcqP1zgR5AhsA
45 0agnwAjfB/ow4EH+3HEYV52qpxN98pUxC+1l2hgVtn8xCS/JGyjK+6dv+lZw3ixJoX2RjVtdJ4/
46 cn318EhhQIDAQABo1AwTjAdBgNVHQ4EFgQUzQBVKTEknyLndWd2HTsBdTKvyikwHwYDVR0jBBgw
47 FoAUzQBVKTEknyLndWd2HTsBdTKvyikwDAYDVR0TBAUwAwEB/w==
52 -----BEGIN SIGNATURE-----
53 A4GBADrHSmFSJw/Gv7hs5PNzpaJwAri/sitarIZfzN/SjR+n8L8yeTEoiDb1+BkxlFvXvPHTaOK
54 oO3WlslNNOxh1W5/JkYYGOUkCcyIjnln6qS560imcr3VNjomT/M8M2Iss+rJiKau1TRuaP7H8i6
55 +Gqf3saGdr8/LnvFAdNQvkalQt
56 -----END SIGNATURE-----
58 $ openssl asn1parse -i < [SIGNATURE]
59 0:d=0 hl=3 l= 129 prim: BIT STRING