Hi,
 
I attempt to sign a 160 bit SHA1 hash using my private key as follows:
 
C:\openssl-engine-0.9.6d\out32dll>openssl rsautl -sign -in 16k.hex -inkey server.key -out sign16k.hex -pkcs
 
Then, I attempt to hexdump the verifcation using the following:
 
C:\openssl-engine-0.9.6d\out32dll>openssl rsautl -verify -in sign16k.hex -inkey server.key -raw -hexdump
 
What I get is:
 
 
0000 - 00 01 ff ff ff ff ff ff-ff ff ff ff ff ff ff ff   ................
0010 - ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff   ................
0020 - ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff   ................
0030 - ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff   ................
0040 - ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff   ................
0050 - ff ff ff ff ff ff ff ff-ff ff ff ff ff ff ff ff   ................
0060 - ff ff ff ff ff ff ff ff-ff ff ff 00 f2 e0 1c e1   ................
0070 - 7e ef 14 3b 1c 39 b2 92-d5 07 5a 01 48 d1 b0 52   ~~..;.9....Z.H..R
 
which does not contain the 15 byte padding associated with PKCS v. 1.5 padding.  Can you please tell me what I may be doing incorrectly.
 
Thanks,
Robert Pereira
 

Reply via email to