pike.git
/
lib
/
modules
/
Crypto.pmod
/
Arcfour.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Crypto.pmod/Arcfour.pmod:3:
//! Arcfour is a stream cipher, also known under the trade marked name //! RC4, and it is one of the fastest ciphers around. A problem is //! that the key setup of Arcfour is quite weak, you should never use //! keys with structure, keys that are ordinary passwords, or //! sequences of keys like @expr{"secret:1"@}, @expr{"secret:2"@}, //! ..... If you have keys that don't look like random bit strings, //! and you want to use Arcfour, always hash the key before feeding it //! to Arcfour.
-
#if constant(Nettle) && constant(Nettle.ARCFOUR
_Info
)
+
#if constant(Nettle) && constant(Nettle.ARCFOUR)
-
// NOTE: Depends on the order of INIT invocations.
-
inherit Nettle.ARCFOUR
_Info
;
-
inherit .Cipher;
+
inherit Nettle.ARCFOUR;
-
.CipherState `()() { return Nettle.ARCFOUR_State(); }
-
+
#else constant this_program_does_not_exist=1; #endif