20 lines
465 B
C
Raw Normal View History

2022-09-19 08:51:11 +02:00
/*
* Copyright (C) 2022-2024 - Tillitis AB
2022-09-19 08:51:11 +02:00
* SPDX-License-Identifier: GPL-2.0-only
*/
#ifndef LIB_H
#define LIB_H
#include <stdint.h>
#include <stddef.h>
2024-09-18 11:11:13 +02:00
#include <stdbool.h>
2022-09-19 08:51:11 +02:00
void *memset(void *dest, int c, unsigned n);
void memcpy_s(void *dest, size_t destsize, const void *src, size_t n);
void wordcpy_s(void *dest, size_t destsize, const void *src, size_t n);
2024-09-18 11:11:13 +02:00
bool memeq(void *dest, const void *src, size_t n);
void secure_wipe(void *v, size_t n);
2022-09-19 08:51:11 +02:00
#endif