mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Linux: in command line, support hash algorithm names without '-' as on Windows ("sha256", "sha512", "ripemd160")
This commit is contained in:
@@ -27,6 +27,7 @@ namespace VeraCrypt
|
||||
virtual size_t GetBlockSize () const = 0;
|
||||
virtual size_t GetDigestSize () const = 0;
|
||||
virtual wstring GetName () const = 0;
|
||||
virtual wstring GetAltName () const = 0;
|
||||
virtual shared_ptr <Hash> GetNew () const = 0;
|
||||
virtual void Init () = 0;
|
||||
bool IsDeprecated () const { return Deprecated; }
|
||||
@@ -54,6 +55,7 @@ namespace VeraCrypt
|
||||
virtual size_t GetBlockSize () const { return 64; }
|
||||
virtual size_t GetDigestSize () const { return 160 / 8; }
|
||||
virtual wstring GetName () const { return L"RIPEMD-160"; }
|
||||
virtual wstring GetAltName () const { return L"RIPEMD160"; }
|
||||
virtual shared_ptr <Hash> GetNew () const { return shared_ptr <Hash> (new Ripemd160); }
|
||||
virtual void Init ();
|
||||
virtual void ProcessData (const ConstBufferPtr &data);
|
||||
@@ -76,6 +78,7 @@ namespace VeraCrypt
|
||||
virtual size_t GetBlockSize () const { return 64; }
|
||||
virtual size_t GetDigestSize () const { return 256 / 8; }
|
||||
virtual wstring GetName () const { return L"SHA-256"; }
|
||||
virtual wstring GetAltName () const { return L"SHA256"; }
|
||||
virtual shared_ptr <Hash> GetNew () const { return shared_ptr <Hash> (new Sha256); }
|
||||
virtual void Init ();
|
||||
virtual void ProcessData (const ConstBufferPtr &data);
|
||||
@@ -98,6 +101,7 @@ namespace VeraCrypt
|
||||
virtual size_t GetBlockSize () const { return 128; }
|
||||
virtual size_t GetDigestSize () const { return 512 / 8; }
|
||||
virtual wstring GetName () const { return L"SHA-512"; }
|
||||
virtual wstring GetAltName () const { return L"SHA512"; }
|
||||
virtual shared_ptr <Hash> GetNew () const { return shared_ptr <Hash> (new Sha512); }
|
||||
virtual void Init ();
|
||||
virtual void ProcessData (const ConstBufferPtr &data);
|
||||
@@ -120,6 +124,7 @@ namespace VeraCrypt
|
||||
virtual size_t GetBlockSize () const { return 64; }
|
||||
virtual size_t GetDigestSize () const { return 512 / 8; }
|
||||
virtual wstring GetName () const { return L"Whirlpool"; }
|
||||
virtual wstring GetAltName () const { return L"Whirlpool"; }
|
||||
virtual shared_ptr <Hash> GetNew () const { return shared_ptr <Hash> (new Whirlpool); }
|
||||
virtual void Init ();
|
||||
virtual void ProcessData (const ConstBufferPtr &data);
|
||||
|
||||
Reference in New Issue
Block a user