diff options
author | weidai <weidai11@users.noreply.github.com> | 2006-12-14 11:41:39 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2006-12-14 11:41:39 +0000 |
commit | 4afd858ae4974f82f9997b9184bc3d8d71d29b6e (patch) | |
tree | be3960f1424e79719ea9c5f6152df003bc1c44f3 /salsa.h | |
parent | 0f5ff1a06380139d0e93ba7cda3923d2c41cd866 (diff) | |
download | cryptopp-git-4afd858ae4974f82f9997b9184bc3d8d71d29b6e.tar.gz |
port to Borland C++Builder 2006
Diffstat (limited to 'salsa.h')
-rwxr-xr-x | salsa.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -8,20 +8,17 @@ NAMESPACE_BEGIN(CryptoPP) //! _ -struct Salsa20_Info : public VariableKeyLength<32, 16, 32, 16, SimpleKeyingInterface::STRUCTURED_IV> +struct Salsa20_Info : public VariableKeyLength<32, 16, 32, 16, SimpleKeyingInterface::STRUCTURED_IV, 8> { static const char *StaticAlgorithmName() {return "Salsa20";} }; class CRYPTOPP_NO_VTABLE Salsa20_Policy : public AdditiveCipherConcretePolicy<word32, 16>, public Salsa20_Info { -public: - unsigned int IVSize() const {return 8;} - void GetNextIV(byte *IV) const; - protected: void CipherSetKey(const NameValuePairs ¶ms, const byte *key, size_t length); void OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount); + void CipherGetNextIV(byte *IV); void CipherResynchronize(byte *keystreamBuffer, const byte *IV); bool IsRandomAccess() const {return true;} void SeekToIteration(lword iterationCount); |