std1.0.0-beta-7 SafeC docs

std :: mem

Function std::mem_zero_secure

#include <std/mem.h> source ยท definition

generic<T> void mem_zero_secure([]T s)

Zero s (all its elements' bytes) with volatile stores the optimizer can't remove (for secrets); mem_zero_secure_obj zeroes one object the same way.