[DGD] sha-256

bart at wotf.org bart at wotf.org
Sun Jan 31 15:35:37 CET 2016


On Sat, 30 Jan 2016 18:54:16 +0100, Felix A. Croes wrote
> bart at wotf.org wrote:
> 
> > Since SHA-1 is vulnerable to collision attacks, is there any intention to add
> > sha-256 support?
> >
> > Looking at kfun/extra.c I noticed it has its own implementations of sha1 and
> > md5, I bet there was a motivation to not use openssl for this?
> 
> The motivation is that DGD should only depend on core libraries, and
> OpenSSL is not supported on all platforms that DGD runs on.

Makes sense.
> 
> If you want to add SHA-256 based on OpenSSL, do it through the extension
> interface.  Name the function "hash SHA-256" and it will be automatically
> provided through hash_string().

Thanks, this looks useful, through considering the state of the hashing
algorithms currently supported by dgd, I think this should be part of vanilla
dgd, not an extension.

Bart.
--
http://www.flickr.com/photos/mrobjective/
http://www.om-d.org/




More information about the DGD mailing list