Branch: Tag:

2013-10-05

2013-10-05 13:05:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle.Hash: Major refactoring of the hashes.

The hash state now uses parent pointers instead of mixins.

Renamed Nettle.<HASH>_Info to Nettle.<HASH> and
moved Nettle.<HASH>_State to Nettle.<HASH>.State.

Adjusted the corresponding code in Crypto, so that the APIs
there should be the same as before.

5:   //! replacement for @[SHA1], generating larger digests. It outputs hash   //! values of 384 bits, or 48 octets.    - #if constant(Nettle) && constant(Nettle.SHA384_Info) + #if constant(Nettle) && constant(Nettle.SHA384)    - // NOTE: Depends on the order of INIT invocations. - inherit Nettle.SHA384_Info; - inherit .Hash; + inherit Nettle.SHA384;    - .HashState `()() { return Nettle.SHA384_State(); } -  +    // id-sha384   // FROM RFC 4055 {   // joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101)