Overview
Features
Download
Documentation
Community
Add-Ons & Services

SHA 256

Discussion of ideas for features and new projects based on POCO.

SHA 256

Postby syvex » 26 Jan 2010, 05:38

Does anyone have any interest in adding SHA-256 (maybe SHA-512 as well) to the Foundation/Crypt? The reason I ask is the available hash algorithms MD5 and SHA1 have know vulnerabilities. It would be nice to have the latest and greatest right out of the box.

Or is there a way to get to this through Poco::Crypto?
syvex
 
Posts: 6
Joined: 26 Jan 2010, 05:14
Location: Texas, USA

Re: SHA 256

Postby guenter » 26 Jan 2010, 10:50

I guess the best way, now that we have Crypto, is to add a Poco::DigestEngine subclass for OpenSSL EVP_DigestInit() and friends (http://www.openssl.org/docs/crypto/EVP_DigestInit.html).
I'll see if I can get this into 1.3.7.
guenter
 
Posts: 1119
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: SHA 256

Postby aderouineau » 26 Jan 2010, 18:44

It would be nice to have AES and Blowfish as well then.
aderouineau
 
Posts: 163
Joined: 18 May 2009, 17:38

Re: SHA 256

Postby syvex » 27 Jan 2010, 04:30

Guenter, that would be great!

I've been looking at POCO for a few months now, and I've never seen better written C++. I'm not sure how I can live without it :D
syvex
 
Posts: 6
Joined: 26 Jan 2010, 05:14
Location: Texas, USA

Re: SHA 256

Postby syvex » 27 Jan 2010, 04:38

aderouineau wrote:It would be nice to have AES and Blowfish as well then.


There is already AES and BF support with Poco::Crypto::CipherKey("aes256", ...) or Poco::Crypto::CipherKey("bf", ...). Be sure to build Poco with OpenSSL so that it can pick it up.

See Crypto/CipherFactory.h and Crypto/CipherKey.h.

Cheers
syvex
 
Posts: 6
Joined: 26 Jan 2010, 05:14
Location: Texas, USA


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest