1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

Remove remaining legacy cryptographic algorithms that are never used by VeraCrypt.

This commit is contained in:
Mounir IDRASSI
2014-07-20 12:30:58 +02:00
parent 75f7808719
commit a5c1978eef
26 changed files with 1 additions and 1012 deletions

View File

@@ -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 ()