This commit is contained in:
Igor Pavlov
2021-07-22 23:00:14 +01:00
committed by Kornel
parent 4a960640a3
commit 585698650f
619 changed files with 34904 additions and 10859 deletions

View File

@@ -3,11 +3,10 @@
#ifndef __CRYPTO_RAR5_AES_H
#define __CRYPTO_RAR5_AES_H
#include "../../../C/Aes.h"
#include "../../../C/Sha256.h"
#include "../../Common/MyBuffer.h"
#include "HmacSha256.h"
#include "MyAes.h"
namespace NCrypto {
@@ -50,6 +49,17 @@ struct CKey
}
CKey();
void Wipe()
{
_password.Wipe();
MY_memset_0_ARRAY(_salt);
MY_memset_0_ARRAY(_key);
MY_memset_0_ARRAY(_check_Calced);
MY_memset_0_ARRAY(_hashKey);
}
~CKey() { Wipe(); }
};