Branch: Tag:

2014-12-04

2014-12-04 19:24:14 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.

5:   //! block size of 64 bits (8 octets), and a variable key size, up to   //! 448 bits. It has some weak keys.    - #if constant(Nettle) && constant(Nettle.BLOWFISH_Info) + #if constant(Nettle) && constant(Nettle.BLOWFISH)    - // NOTE: Depends on the order of INIT invocations. - inherit Nettle.BLOWFISH_Info; - inherit .Cipher; + inherit Nettle.BLOWFISH;    - .CipherState `()() { return Nettle.BLOWFISH_State(); } -  +    #else   constant this_program_does_not_exist=1;   #endif