1 The key, message, and signature come from Example 1 of:
2 ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors.txt
4 (The algorithm DER was synthesized to match, and the signature enclosed in a BIT STRING).
6 It uses an RSA key with modulus length of 1024 bits, PKCS#1 v1.5 padding, and
11 -----BEGIN PUBLIC KEY-----
12 MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClbkoOcBAXWJpRh9x+qEHRVvLsDjatUqRN/rH
13 mH3rZkdjFEFb/7bFitMDyg6EqiKOU3/Umq3KRy7MHzqv84LHf1c2VCAltWyuLbfXWce9jd8CSHL
14 I8Jwpw4lmOb/idGfEFrMLT8Ms18pKA4Thrb2TE7yLh4fINDOjP+yJJvZohNwIDAQAB
15 -----END PUBLIC KEY-----
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
26 -----BEGIN ALGORITHM-----
28 -----END ALGORITHM-----
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 :sha1WithRSAEncryption
33 13:d=1 hl=2 l= 0 prim: NULL
38 zch9oiPXht87ReC7vHITJtHuKvgGzDFUdcxvDZxm4bYjcdRc4jkuGskoRMMQEC8Vag2NUsH0xAu
39 jqmUJV4bLdpdXplY7qVj+0LzJhOi1F6PV9RWyO4pB50qoZ2k/kN+wYabobfqu5kRywA5fIJRXKc
40 vr538Gznjgj0CY+6QfnWGTwDF+i2DUtghKy0LSnjgIo7w3LYXjMRcPy/fMctC3HClmSLOk0Q9BY
41 pXQgHqmJcqydE/Z6o/SI8QlNwKYKL0WvgJUbxMP0uM7k20mduCK7RtzMYt1CgFn0A==
46 -----BEGIN SIGNATURE-----
47 A4GBAGvDoGZWhCkwokfjDVhktNgZI2unxollhirX28TiSvKOhrtTHwM1i+X7dHd8YIb4UMrviT8
48 Nb8wtDJHsATaTtOoAuAzUmqxOy1+JEa/lOa2kqPOCPR0T5HLRSQVHxlnHYX89JAh9228rcglhZ/
49 wJfKsY6aRY/LY0zc6O41iUxITX
50 -----END SIGNATURE-----
52 $ openssl asn1parse -i < [SIGNATURE]
53 0:d=0 hl=3 l= 129 prim: BIT STRING