ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
crypto_scratch.h File Reference

Constant-time comparison for secret-dependent checks. More...

#include "protocore_config.h"
#include "shared_primitives/span.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Detailed Description

Constant-time comparison for secret-dependent checks.

Was also the home of the shared crypto_work scratch buffer and the secure wipe. Both have moved: crypto operations now borrow their working sets from the secure pool (server/mmgr/secure.h), which wipes on release, so no fixed buffer and no hand-assigned offsets remain. pc_secure_wipe() lives there too - zeroing storage is a memory-manager operation. What is left here is pc_ct_eq, which is genuinely a crypto concern. The file name now overstates its contents; renaming it is a follow-up.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file crypto_scratch.h.