VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Crypto.h3
-rw-r--r--src/Common/Dlgcode.c10
-rw-r--r--src/Common/Pkcs5.h3
-rw-r--r--src/Common/Tests.h1
4 files changed, 0 insertions, 17 deletions
diff --git a/src/Common/Crypto.h b/src/Common/Crypto.h
index f183a436..e66ac18c 100644
--- a/src/Common/Crypto.h
+++ b/src/Common/Crypto.h
@@ -62,9 +62,6 @@ enum
62#define RIPEMD160_BLOCKSIZE 64 62#define RIPEMD160_BLOCKSIZE 64
63#define RIPEMD160_DIGESTSIZE 20 63#define RIPEMD160_DIGESTSIZE 20
64 64
65#define SHA1_BLOCKSIZE 64
66#define SHA1_DIGESTSIZE 20
67
68#define SHA512_BLOCKSIZE 128 65#define SHA512_BLOCKSIZE 128
69#define SHA512_DIGESTSIZE 64 66#define SHA512_DIGESTSIZE 64
70 67
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index b40a41cd..092c8c6f 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -4353,7 +4353,6 @@ static BOOL PerformBenchmark(HWND hwndDlg)
4353 BYTE *digest [MAX_DIGESTSIZE]; 4353 BYTE *digest [MAX_DIGESTSIZE];
4354 WHIRLPOOL_CTX wctx; 4354 WHIRLPOOL_CTX wctx;
4355 RMD160_CTX rctx; 4355 RMD160_CTX rctx;
4356 sha1_ctx sctx;
4357 sha512_ctx s2ctx; 4356 sha512_ctx s2ctx;
4358 int hid; 4357 int hid;
4359 4358
@@ -4364,11 +4363,6 @@ static BOOL PerformBenchmark(HWND hwndDlg)
4364 4363
4365 switch (hid) 4364 switch (hid)
4366 { 4365 {
4367 case SHA1:
4368 sha1_begin (&sctx);
4369 sha1_hash (lpTestBuffer, benchmarkBufferSize, &sctx);
4370 sha1_end ((unsigned char *) digest, &sctx);
4371 break;
4372 4366
4373 case SHA512: 4367 case SHA512:
4374 sha512_begin (&s2ctx); 4368 sha512_begin (&s2ctx);
@@ -4424,10 +4418,6 @@ static BOOL PerformBenchmark(HWND hwndDlg)
4424 { 4418 {
4425 switch (thid) 4419 switch (thid)
4426 { 4420 {
4427 case SHA1:
4428 /* PKCS-5 test with HMAC-SHA-1 used as the PRF */
4429 derive_key_sha1 ("passphrase-1234567890", 21, tmp_salt, 64, get_pkcs5_iteration_count(thid, FALSE), dk, MASTER_KEYDATA_SIZE);
4430 break;
4431 4421
4432 case SHA512: 4422 case SHA512:
4433 /* PKCS-5 test with HMAC-SHA-512 used as the PRF */ 4423 /* PKCS-5 test with HMAC-SHA-512 used as the PRF */
diff --git a/src/Common/Pkcs5.h b/src/Common/Pkcs5.h
index 5a286fb5..148a3e2d 100644
--- a/src/Common/Pkcs5.h
+++ b/src/Common/Pkcs5.h
@@ -22,9 +22,6 @@ extern "C"
22void hmac_sha512 (char *k, int lk, char *d, int ld, char *out, int t); 22void hmac_sha512 (char *k, int lk, char *d, int ld, char *out, int t);
23void derive_u_sha512 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b); 23void derive_u_sha512 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b);
24void derive_key_sha512 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *dk, int dklen); 24void derive_key_sha512 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *dk, int dklen);
25void hmac_sha1 (char *k, int lk, char *d, int ld, char *out, int t);
26void derive_u_sha1 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b);
27void derive_key_sha1 (char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *dk, int dklen);
28void hmac_ripemd160 (char *key, int keylen, char *input, int len, char *digest); 25void hmac_ripemd160 (char *key, int keylen, char *input, int len, char *digest);
29void derive_u_ripemd160 (BOOL bNotTest, char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b); 26void derive_u_ripemd160 (BOOL bNotTest, char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *u, int b);
30void derive_key_ripemd160 (BOOL bNotTest, char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *dk, int dklen); 27void derive_key_ripemd160 (BOOL bNotTest, char *pwd, int pwd_len, char *salt, int salt_len, int iterations, char *dk, int dklen);
diff --git a/src/Common/Tests.h b/src/Common/Tests.h
index cd8aaf4c..e98ae884 100644
--- a/src/Common/Tests.h
+++ b/src/Common/Tests.h
@@ -17,7 +17,6 @@ extern unsigned char ks_tmp[MAX_EXPANDED_KEY];
17 17
18void CipherInit2(int cipher, void* key, void* ks, int key_len); 18void CipherInit2(int cipher, void* key, void* ks, int key_len);
19BOOL test_hmac_sha512 (void); 19BOOL test_hmac_sha512 (void);
20BOOL test_hmac_sha1 (void);
21BOOL test_hmac_ripemd160 (void); 20BOOL test_hmac_ripemd160 (void);
22BOOL test_hmac_whirlpool (void); 21BOOL test_hmac_whirlpool (void);
23BOOL test_pkcs5 (void); 22BOOL test_pkcs5 (void);