cryptnox-sdk-cpp 1.0.0
Platform-independent C++ core SDK for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
CW_Utils.cpp File Reference

Implementation of the platform-independent utility helpers. More...

#include "CW_Utils.h"
Include dependency graph for CW_Utils.cpp:

Go to the source code of this file.

Detailed Description

Implementation of the platform-independent utility helpers.

CW_Utils::secure_compare iterates over the full length to avoid leaking byte-position information through timing. CW_Utils::secure_wipe uses a volatile pointer so the writes cannot be optimised away. CW_Utils::safe_memcpy validates pointers, length, and source/destination overlap before delegating to memcpy.

Definition in file CW_Utils.cpp.