mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-04-03 18:00:08 +03:00
Remove MD4 hash algorithm
Remove MD4 which is insecure nowadays and in general, people use MD5 more frequent through it is also insecure.
This commit is contained in:
parent
e944e6a848
commit
18c70c2bd0
@ -29,7 +29,6 @@
|
|||||||
#include <openssl/pkcs12.h>
|
#include <openssl/pkcs12.h>
|
||||||
#include <openssl/rc4.h>
|
#include <openssl/rc4.h>
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
#include <openssl/md4.h>
|
|
||||||
#include <openssl/hmac.h>
|
#include <openssl/hmac.h>
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
#include <openssl/des.h>
|
#include <openssl/des.h>
|
||||||
@ -169,18 +168,6 @@ void Enc_tls1_PRF(unsigned char *label, int label_len, const unsigned char *sec,
|
|||||||
Free(out2);
|
Free(out2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// MD4 specific hash function
|
|
||||||
void HashMd4(void *dst, void *src, UINT size)
|
|
||||||
{
|
|
||||||
// Validate arguments
|
|
||||||
if (dst == NULL || (src == NULL && size != 0))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
MD4(src, size, dst);
|
|
||||||
}
|
|
||||||
|
|
||||||
// MD5 hash
|
// MD5 hash
|
||||||
void Md5(void *dst, void *src, UINT size)
|
void Md5(void *dst, void *src, UINT size)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user