Hi,

OpenSSL can definitely be used to implement a port of Crypto API under Linux but I advise you to take a look at Winelib from the "Wine" project (http://www.winehq.org/winelib). They have implemented, among other things, the whole Crypto API functions along with MS CSPs. Although it's not based on OpenSSL (they use LibTomCrypt and GnuTLS), it's very stable and easy to use in order to port existing Crypto API code. In order to show this, I have written a CryptAPI sample that performs RSA key generation, hashing and signature computation along with the Linux makefile that enables to compile it using Winelib. You can get it from the following link :

http://www.idrix.fr/Root/Samples/capi_wine.tar.gz (Just type make after decompressing)

Under Debian, you get Winelib by typing "apt-get install libwine-dev" and under Ubuntu you've to type "apt-get install wine-dev".

I hope this will help.

Cheers
--
Mounir IDRASSI
IDRIX
http://www.idrix.fr


Gaurav Kumar wrote:
Hi,

I want to port few MS Crypto Api's on Linux.
Here are api's which i want to port.
CryptSetKeyParam
CryptDecrypt
CryptEncrypt
CryptGetKeyParam
CryptHashData
CryptCreateHash

I want to use the same parameters used for encryption and decryption on windows.
For e.g.
CryptDecrypt uses parameters:
hkey ---    key to use for the decryption.
hHash ---   Hash handle MD5 or SHA1.
dwFlag-----For padding
pbData --- Data to decrypt.
pdwDatalength -- Size of data to decrypt.

Can this be possible using Crypto Library?
Which Crypto Api's in Linux uses key, MD5 or SHA1 and padding to decrypt and encrypt the data?

Thanks,
Gaurav

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to