7 #ifndef CRYPTOPP_SEAL_H 8 #define CRYPTOPP_SEAL_H 18 template <
class B = BigEndian>
21 CRYPTOPP_STATIC_CONSTEXPR
const char* StaticAlgorithmName() {
return B::ToEnum() ==
LITTLE_ENDIAN_ORDER ?
"SEAL-3.0-LE" :
"SEAL-3.0-BE";}
27 template <
class B = BigEndian>
31 void CipherSetKey(
const NameValuePairs ¶ms,
const byte *key,
size_t length);
33 void CipherResynchronize(byte *keystreamBuffer,
const byte *
IV,
size_t length);
34 bool CipherIsRandomAccess()
const {
return true;}
35 void SeekToIteration(lword iterationCount);
42 word32 m_startCount, m_iterationsPerCount;
43 word32 m_outsideCounter, m_insideCounter;
50 template <
class B = BigEndian>
SEAL stream cipher operation.
Inherited by keyed algorithms with fixed key length.
Base class for additive stream ciphers.
byte order is little-endian
Classes and functions for secure memory allocations.
SEAL stream cipher information.
virtual void OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount)=0
Operates the keystream.
const char * IV()
ConstByteArrayParameter, also accepts const byte * for backwards compatibility.
Classes for implementing stream ciphers.
Provides Encryption and Decryption typedefs used by derived classes to implement a symmetric cipher...
KeystreamOperation
Keystream operation flags.
Crypto++ library namespace.
SymmetricCipher implementation.
Interface for retrieving values given their names.