[cryptography] is there a library?

I'm writing to an API that requires: "The language selected must also include a key generator and encrypt and decrypt API. The only messages that are not encrypted are error messages. The encryption and decryption algorithms are not configurable. Make sure the encrypt and decrypt API supports the algorithms in use. The current algorithm in use is Password-Based Key Definition (PBKDF2) to generate the key from a given password, iteration count and salt value. DESede + CBC + PKCS5 v2.0 is then used with the key to encrypt and decrypt the message." Is there such a library hiding in or around boost somewhere? Thanks.

Gesendet: Mittwoch, 30. Oktober 2013 um 04:29 Uhr Von: "Michael Marcin"
An: boost@lists.boost.org Betreff: [boost] [cryptography] is there a library? I'm writing to an API that requires:
"The language selected must also include a key generator and encrypt and decrypt API. The only messages that are not encrypted are error messages. The encryption and decryption algorithms are not configurable. Make sure the encrypt and decrypt API supports the algorithms in use. The current algorithm in use is Password-Based Key Definition (PBKDF2) to generate the key from a given password, iteration count and salt value. DESede + CBC + PKCS5 v2.0 is then used with the key to encrypt and decrypt the message."
Is there such a library hiding in or around boost somewhere?
Not in boost, but POCO has a set of encryption classes, and it shares the license with boost. kind regards, Jens Weller

On 30.10.2013 7:29, Michael Marcin wrote:
"The language selected must also include a key generator and encrypt and decrypt API.
Is there such a library hiding in or around boost somewhere? There is Crypto++ (http://www.cryptopp.com). It's an independent library with boost license.
-- Sergey Cheban

On 10/30/2013 04:29 AM, Michael Marcin wrote:
The current algorithm in use is Password-Based Key Definition (PBKDF2) to generate the key from a given password, iteration count and salt value. DESede + CBC + PKCS5 v2.0 is then used with the key to encrypt and decrypt the message."
Is there such a library hiding in or around boost somewhere?
It almost sounds as if you are looking for an SSL implementation. If so, then there is an SSL integration in Boost.Asio. If not, then you may want to look at: o Crypto++ (see Sergey's reply), o NaCL [ http://nacl.cr.yp.to/ ] o libsodium [ https://github.com/jedisct1/libsodium ]

On 10/30/2013 4:15 AM, Bjorn Reese wrote:
On 10/30/2013 04:29 AM, Michael Marcin wrote:
The current algorithm in use is Password-Based Key Definition (PBKDF2) to generate the key from a given password, iteration count and salt value. DESede + CBC + PKCS5 v2.0 is then used with the key to encrypt and decrypt the message."
Is there such a library hiding in or around boost somewhere?
It almost sounds as if you are looking for an SSL implementation. If so, then there is an SSL integration in Boost.Asio.
If not, then you may want to look at:
o Crypto++ (see Sergey's reply), o NaCL [ http://nacl.cr.yp.to/ ] o libsodium [ https://github.com/jedisct1/libsodium ]
libsodium and Crypto++ both look quite good. Thank you all.
participants (4)
-
Bjorn Reese
-
Jens Weller
-
Michael Marcin
-
Sergey Cheban