|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
RAII scope guard for secure borrows - marks on entry, wipes and reclaims on every exit. More...
#include <secure.h>
Public Member Functions | |
| SecureScope () | |
| ~SecureScope () | |
| SecureScope (const SecureScope &)=delete | |
| SecureScope & | operator= (const SecureScope &)=delete |
RAII scope guard for secure borrows - marks on entry, wipes and reclaims on every exit.
The reason to prefer this over pc_secure_release(): a secret's wipe must happen on every path, including the early returns taken when a peer sends something malformed, and those are exactly the paths a hand-written wipe gets forgotten on.
|
inline |
Definition at line 184 of file secure.h.
References pc_secure_release().
|
delete |
|
delete |