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:   //! and is described in RFC 1319. It outputs message digests of 128   //! bits, or 16 octets.    - #if constant(Nettle) && constant(Nettle.MD2_Info) + #if constant(Nettle) && constant(Nettle.MD2)    - // NOTE: Depends on the order of INIT invocations. - inherit Nettle.MD2_Info; - inherit .Hash; + inherit Nettle.MD2;    - .HashState `()() { return Nettle.MD2_State(); } -  +    // urn:oid:1.2.840.113549.2.2   string asn1_id() { return "*\206H\206\367\r\2\2"; }      #else   constant this_program_does_not_exist=1;   #endif