OLD | NEW |
1 // Use the NIST test vectors from Example 1 of | 1 // Use the NIST test vectors from Example 1 of |
2 // ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors.txt | 2 // ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors.txt |
3 // These vectors are known answers for RSA PKCS#1 v1.5 Signature with a SHA-1 | 3 // These vectors are known answers for RSA PKCS#1 v1.5 Signature with a SHA-1 |
4 // digest, using a predefined key pair. | 4 // digest, using a predefined key pair. |
5 | 5 |
6 [ | 6 [ |
7 // The following data are the input messages and corresponding computed RSA | 7 // The following data are the input messages and corresponding computed RSA |
8 // PKCS#1 v1.5 signatures from the NIST link above. | 8 // PKCS#1 v1.5 signatures from the NIST link above. |
9 // PKCS#1 v1.5 Signature Example 1.1 | 9 // PKCS#1 v1.5 Signature Example 1.1 |
10 { | 10 { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 { | 100 { |
101 "message_hex": "64702db9f825a0f3abc361974659f5e9d30c3aa4f56feac69050c72905e7
7fe0c22f88a378c21fcf45fe8a5c717302093929", | 101 "message_hex": "64702db9f825a0f3abc361974659f5e9d30c3aa4f56feac69050c72905e7
7fe0c22f88a378c21fcf45fe8a5c717302093929", |
102 "signature_hex": "152f3451c858d69594e6567dfb31291c1ee7860b9d15ebd5a5edd276ac
3e6f7a8d1480e42b3381d2be023acf7ebbdb28de3d2163ae44259c6df98c335d045b61dac9dba9db
bb4e6ab4a083cd76b580cbe472206a1a9fd60680ceea1a570a29b0881c775eaef5525d6d2f344c28
837d0aca422bbb0f1aba8f6861ae18bd73fe44" | 102 "signature_hex": "152f3451c858d69594e6567dfb31291c1ee7860b9d15ebd5a5edd276ac
3e6f7a8d1480e42b3381d2be023acf7ebbdb28de3d2163ae44259c6df98c335d045b61dac9dba9db
bb4e6ab4a083cd76b580cbe472206a1a9fd60680ceea1a570a29b0881c775eaef5525d6d2f344c28
837d0aca422bbb0f1aba8f6861ae18bd73fe44" |
103 }, | 103 }, |
104 // PKCS#1 v1.5 Signature Example 1.20 | 104 // PKCS#1 v1.5 Signature Example 1.20 |
105 { | 105 { |
106 "message_hex": "941921de4a1c9c1618d6f3ca3c179f6e29bae6ddf9a6a564f929e3ce82cf
3265d7837d5e692be8dcc9e86c", | 106 "message_hex": "941921de4a1c9c1618d6f3ca3c179f6e29bae6ddf9a6a564f929e3ce82cf
3265d7837d5e692be8dcc9e86c", |
107 "signature_hex": "7076c287fc6fff2b20537435e5a3107ce4da10716186d01539413e609d
27d1da6fd952c61f4bab91c045fa4f8683ecc4f8dde74227f773cff3d96db84718c4944b06affeba
94b725f1b07d3928b2490a85c2f1abf492a9177a7cd2ea0c9668756f825bbec900fa8ac3824e1143
87ef573780ca334882387b94e5aad7a27a28dc" | 107 "signature_hex": "7076c287fc6fff2b20537435e5a3107ce4da10716186d01539413e609d
27d1da6fd952c61f4bab91c045fa4f8683ecc4f8dde74227f773cff3d96db84718c4944b06affeba
94b725f1b07d3928b2490a85c2f1abf492a9177a7cd2ea0c9668756f825bbec900fa8ac3824e1143
87ef573780ca334882387b94e5aad7a27a28dc" |
108 } | 108 } |
109 ] | 109 ] |
OLD | NEW |