Branch: Tag:

2013-10-21

2013-10-21 21:47:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle.Cipher: Major refactoring of the ciphers.

The cipher state now uses parent pointers instead of mixins.

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

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

7:   //! use it with anything but the maximum key size, smaller keys are   //! just padded to larger ones.    - #if constant(Nettle) && constant(Nettle.SERPENT_Info) + #if constant(Nettle) && constant(Nettle.SERPENT)    - // NOTE: Depends on the order of INIT invocations. - inherit Nettle.SERPENT_Info; - inherit .Cipher; + inherit Nettle.SERPENT;    - .CipherState `()() { return Nettle.SERPENT_State(); } -  +    #else   constant this_program_does_not_exist=1;   #endif