2022-09-19 08:51:11 +02:00
|
|
|
/*
|
2024-09-06 12:46:18 +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
|
|
|
|
|
2024-09-12 10:26:25 +02:00
|
|
|
#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);
|
2023-02-27 17:00:23 +01:00
|
|
|
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);
|
2024-02-02 14:20:21 +01:00
|
|
|
void secure_wipe(void *v, size_t n);
|
2024-09-04 10:02:06 +02:00
|
|
|
|
2022-09-19 08:51:11 +02:00
|
|
|
#endif
|