VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Volume/Hash.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-20 10:30:58 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:21:35 (GMT)
commita5c1978eefe2fd0dbf1ab6b7cdcb019a9b913a40 (patch)
treebb48f3b5544dc218228d368a7e893a83f0c0b059 /src/Volume/Hash.cpp
parent75f780871949e5bacca4718507e66c8d28d72e69 (diff)
downloadVeraCrypt-a5c1978eefe2fd0dbf1ab6b7cdcb019a9b913a40.zip
VeraCrypt-a5c1978eefe2fd0dbf1ab6b7cdcb019a9b913a40.tar.gz
Remove remaining legacy cryptographic algorithms that are never used by VeraCrypt.
Diffstat (limited to 'src/Volume/Hash.cpp')
-rw-r--r--src/Volume/Hash.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/Volume/Hash.cpp b/src/Volume/Hash.cpp
index ddae669..b917a8e 100644
--- a/src/Volume/Hash.cpp
+++ b/src/Volume/Hash.cpp
@@ -9,7 +9,6 @@
#include "Hash.h"
#include "Crypto/Rmd160.h"
-#include "Crypto/Sha1.h"
#include "Crypto/Sha2.h"
#include "Crypto/Whirlpool.h"
@@ -22,7 +21,6 @@ namespace VeraCrypt
l.push_back (shared_ptr <Hash> (new Ripemd160 ()));
l.push_back (shared_ptr <Hash> (new Sha512 ()));
l.push_back (shared_ptr <Hash> (new Whirlpool ()));
- l.push_back (shared_ptr <Hash> (new Sha1 ()));
return l;
}
@@ -62,31 +60,6 @@ namespace VeraCrypt
if_debug (ValidateDataParameters (data));
RMD160Update ((RMD160_CTX *) Context.Ptr(), data.Get(), (int) data.Size());
}
-
- // SHA-1
- Sha1::Sha1 ()
- {
- Deprecated = true;
- Context.Allocate (sizeof (sha1_ctx));
- Init();
- }
-
- void Sha1::GetDigest (const BufferPtr &buffer)
- {
- if_debug (ValidateDigestParameters (buffer));
- sha1_end (buffer, (sha1_ctx *) Context.Ptr());
- }
-
- void Sha1::Init ()
- {
- sha1_begin ((sha1_ctx *) Context.Ptr());
- }
-
- void Sha1::ProcessData (const ConstBufferPtr &data)
- {
- if_debug (ValidateDataParameters (data));
- sha1_hash (data.Get(), (int) data.Size(), (sha1_ctx *) Context.Ptr());
- }
// SHA-512
Sha512::Sha512 ()