|
cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
|
Scrubs a buffer with CW_Utils::secure_wipe when it leaves scope. More...
#include <pos_app.h>
Public Member Functions | |
| WipeGuard (uint8_t *b, size_t n) | |
| ~WipeGuard () | |
| WipeGuard (const WipeGuard &)=delete | |
| WipeGuard & | operator= (const WipeGuard &)=delete |
Public Attributes | |
| uint8_t * | buf |
| size_t | len |
Scrubs a buffer with CW_Utils::secure_wipe when it leaves scope.
The payment paths have many early returns; a guard declared next to each sensitive artifact scrubs it on every exit.
|
inlineexplicit |
Definition at line 218 of file pos_app.h.
Referenced by operator=(), and WipeGuard().
|
delete |
References WipeGuard().
References WipeGuard().
| uint8_t* WipeGuard::buf |
Definition at line 216 of file pos_app.h.
Referenced by WipeGuard(), and ~WipeGuard().
| size_t WipeGuard::len |
Definition at line 217 of file pos_app.h.
Referenced by WipeGuard(), and ~WipeGuard().