1 #ifndef CRYPTOPP_WAKE_H
2 #define CRYPTOPP_WAKE_H
8 NAMESPACE_BEGIN(CryptoPP)
14 static const char *StaticAlgorithmName() {
return B::ToEnum() == LITTLE_ENDIAN_ORDER ?
"WAKE-OFB-LE" :
"WAKE-OFB-BE";}
20 word32 M(word32 x, word32 y);
21 void GenKey(word32 k0, word32 k1, word32 k2, word32 k3);
24 word32 r3, r4, r5, r6;
27 template <
class B = BigEndian>
31 void CipherSetKey(
const NameValuePairs ¶ms,
const byte *key,
size_t length);
33 void OperateKeystream(KeystreamOperation operation, byte *output,
const byte *input,
size_t iterationCount);
34 bool CipherIsRandomAccess()
const {
return false;}
38 template <
class B = BigEndian>
to be inherited by keyed algorithms with fixed key length
interface for one direction (encryption or decryption) of a stream cipher or cipher mode ...
Each class derived from this one defines two types, Encryption and Decryption, both of which implemen...
interface for retrieving values given their names