Hi I am currently working on the SSLEAY crypto libraries and the Gemplus
GPK4000 cards. When I sign a message using SSLEAY md5() and
rsa_public_encrypt(), I get a signature string. However when I perform
the signature using GPK4000 I get a different string. Both return 64
bytes.
The keys which are loaded into the card were created by SSLEAY
rsageneratekey(). These keys are then stored into file in ASCII format
(0-F).These keys are then converted into a binary string and loaded into
the card.
Does anyone out there know what could be wrong? I'm running out of
ideas.
BTW. The plain text message before digest is 6 bytes (012345). I assume
padding is done automatically by the SSLeay MD5 functions.
RSAprivatencrypt uses PCKS-1 padding.
Thanks.
Jason.
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************