From e90e24b30b379752bf6531c663085de1d2a653d7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 9 Aug 2016 14:25:52 +0200 Subject: Windows: Add support for Streebog (hash) and kuznyechik (encryption) --- src/Volume/Hash.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/Volume/Hash.h') diff --git a/src/Volume/Hash.h b/src/Volume/Hash.h index 139924c0..9cef9de7 100644 --- a/src/Volume/Hash.h +++ b/src/Volume/Hash.h @@ -139,6 +139,29 @@ namespace VeraCrypt Whirlpool (const Whirlpool &); Whirlpool &operator= (const Whirlpool &); }; + + // Streebog + class Streebog : public Hash + { + public: + Streebog (); + virtual ~Streebog () { } + + virtual void GetDigest (const BufferPtr &buffer); + virtual size_t GetBlockSize () const { return 64; } + virtual size_t GetDigestSize () const { return 512 / 8; } + virtual wstring GetName () const { return L"Streebog"; } + virtual wstring GetAltName () const { return L"Streebog"; } + virtual shared_ptr GetNew () const { return shared_ptr (new Streebog); } + virtual void Init (); + virtual void ProcessData (const ConstBufferPtr &data); + + protected: + + private: + Streebog (const Streebog &); + Streebog &operator= (const Streebog &); + }; } #endif // TC_HEADER_Encryption_Hash -- cgit v1.2.3