18#ifndef PROTOCORE_CRYPTO_SCRATCH_H
19#define PROTOCORE_CRYPTO_SCRATCH_H
35static inline bool pc_ct_eq(
const void *a,
const void *b,
size_t n)
37 const uint8_t *pa = (
const uint8_t *)a;
38 const uint8_t *pb = (
const uint8_t *)b;
40 for (
size_t i = 0; i < n; i++)
42 diff |= (uint8_t)(pa[i] ^ pb[i]);
User-facing configuration for ProtoCore.
A byte region whose run length is bound in both directions.