1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-23 16:08:59 +00:00
pqcrypto/crypto_kem/hqc-256-2-cca2/leaktime/util.h

10 lines
477 B
C
Raw Normal View History

/* These functions should help with endianness-safe conversions */
#include <stddef.h>
#include <stdint.h>
void PQCLEAN_HQC2562CCA2_LEAKTIME_store8(unsigned char *out, uint64_t in);
uint64_t PQCLEAN_HQC2562CCA2_LEAKTIME_load8(const unsigned char *in);
void PQCLEAN_HQC2562CCA2_LEAKTIME_load8_arr(uint64_t *out64, size_t outlen, const uint8_t *in8, size_t inlen);
void PQCLEAN_HQC2562CCA2_LEAKTIME_store8_arr(uint8_t *out8, size_t outlen, const uint64_t *in64, size_t inlen);