ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_secure.h
Go to the documentation of this file.
1
24
25#pragma once
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <stddef.h>
32
65[[nodiscard]] bool ra8_ct_equal(const void* a, const void* b, size_t len);
66
95void ra8_secure_memzero(void* ptr, size_t len);
96
97#ifdef __cplusplus
98}
99#endif
bool ra8_ct_equal(const void *a, const void *b, size_t len)
Constant-time equality of two byte buffers.
Definition ra8_secure.c:20
void ra8_secure_memzero(void *ptr, size_t len)
Securely zero a buffer such that the write cannot be optimised away.
Definition ra8_secure.c:37