mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Add burn calls for temporary ss variable (#569)
This commit is contained in:
committed by
Mounir IDRASSI
parent
0364a36f84
commit
e6aae8bd71
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "Aesopt.h"
|
#include "Aesopt.h"
|
||||||
#include "Aestab.h"
|
#include "Aestab.h"
|
||||||
|
#include "Common/Tcdefs.h"
|
||||||
|
|
||||||
#ifdef USE_VIA_ACE_IF_PRESENT
|
#ifdef USE_VIA_ACE_IF_PRESENT
|
||||||
# include "aes_via_ace.h"
|
# include "aes_via_ace.h"
|
||||||
@@ -95,6 +96,8 @@ AES_RETURN aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1])
|
|||||||
cx->inf.b[1] = 0xff;
|
cx->inf.b[1] = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
burn(ss, sizeof(ss));
|
||||||
|
|
||||||
#if defined( AES_ERR_CHK )
|
#if defined( AES_ERR_CHK )
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
@@ -147,6 +150,8 @@ AES_RETURN aes_encrypt_key192(const unsigned char *key, aes_encrypt_ctx cx[1])
|
|||||||
cx->inf.b[1] = 0xff;
|
cx->inf.b[1] = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
burn(ss, sizeof(ss));
|
||||||
|
|
||||||
#if defined( AES_ERR_CHK )
|
#if defined( AES_ERR_CHK )
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
@@ -202,6 +207,8 @@ AES_RETURN aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1])
|
|||||||
cx->inf.b[1] = 0xff;
|
cx->inf.b[1] = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
burn(ss, sizeof(ss));
|
||||||
|
|
||||||
#if defined( AES_ERR_CHK )
|
#if defined( AES_ERR_CHK )
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
@@ -352,6 +359,8 @@ AES_RETURN aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1])
|
|||||||
cx->inf.b[1] = 0xff;
|
cx->inf.b[1] = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
burn(ss, sizeof(ss));
|
||||||
|
|
||||||
#if defined( AES_ERR_CHK )
|
#if defined( AES_ERR_CHK )
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
@@ -439,6 +448,8 @@ AES_RETURN aes_decrypt_key192(const unsigned char *key, aes_decrypt_ctx cx[1])
|
|||||||
cx->inf.b[1] = 0xff;
|
cx->inf.b[1] = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
burn(ss, sizeof(ss));
|
||||||
|
|
||||||
#if defined( AES_ERR_CHK )
|
#if defined( AES_ERR_CHK )
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
@@ -538,6 +549,8 @@ AES_RETURN aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1])
|
|||||||
cx->inf.b[1] = 0xff;
|
cx->inf.b[1] = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
burn(ss, sizeof(ss));
|
||||||
|
|
||||||
#if defined( AES_ERR_CHK )
|
#if defined( AES_ERR_CHK )
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user