95aaa82003-12-03Martin Nilsson #pike __REAL_VERSION__
af10832003-12-03Martin Nilsson //! SERPENT is one of the AES finalists, designed by Ross Anderson, //! Eli Biham and Lars Knudsen. Thus, the interface and properties are //! similar to @[AES]'. One peculiarity is that it is quite pointless to //! use it with anything but the maximum key size, smaller keys are //! just padded to larger ones.
627c732004-04-14Martin Nilsson #if constant(Nettle) && constant(Nettle.Serpent_Info)
a164de2003-12-03Martin Nilsson 
95aaa82003-12-03Martin Nilsson // NOTE: Depends on the order of INIT invocations. inherit Nettle.Serpent_Info; inherit .Cipher; .CipherState `()() { return Nettle.Serpent_State(); }
a164de2003-12-03Martin Nilsson 
627c732004-04-14Martin Nilsson #else constant this_program_does_not_exist=1;
a164de2003-12-03Martin Nilsson #endif