mirror of
https://github.com/monero-project/monero.git
synced 2025-08-23 09:05:09 -04:00
crypto: make secret_key automatically mlock
This commit is contained in:
parent
70271fa788
commit
ab74dc277a
5 changed files with 12 additions and 10 deletions
|
@ -41,6 +41,7 @@
|
|||
#include "common/pod-class.h"
|
||||
#include "common/util.h"
|
||||
#include "memwipe.h"
|
||||
#include "mlocker.h"
|
||||
#include "generic-ops.h"
|
||||
#include "hex.h"
|
||||
#include "span.h"
|
||||
|
@ -65,7 +66,7 @@ namespace crypto {
|
|||
friend class crypto_ops;
|
||||
};
|
||||
|
||||
using secret_key = tools::scrubbed<ec_scalar>;
|
||||
using secret_key = epee::mlocked<tools::scrubbed<ec_scalar>>;
|
||||
|
||||
POD_CLASS public_keyV {
|
||||
std::vector<public_key> keys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue