views:

187

answers:

1

Hi,

I have a need for a cross-platform (hopefully C) library that can create and mount encrypted filesystem containers. The same functionality of TrueCrypt but as a library so I would not have to externally include and invoke the Truecrypt executables.

Any alternate suggestions or solutions are also very welcome.

Thanks!

+1  A: 

Try openSSL

libssl supports a lot of popular cryptography algorithms. It also has wrapper methods for some (at least blowfish) which will simulate a stream cipher on a block cipher such as blowfish.

SYMMETRIC CIPHERS

blowfish(3), cast(3), des(3), idea(3), rc2(3), rc4(3), rc5(3)

PUBLIC KEY CRYPTOGRAPHY AND KEY AGREEMENT

dsa(3), dh(3), rsa(3)

CERTIFICATES

x509(3), x509v3(3)

AUTHENTICATION CODES, HASH FUNCTIONS

hmac(3), md2(3), md4(3), md5(3), mdc2(3), ripemd(3), sha(3)

http://openssl.linux-mirror.org/docs/crypto/crypto.html

Sean A.O. Harney
ahh, but of course!
James