diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-14 21:25:06 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-14 21:25:06 +0100 |
commit | ea7d8f4a919bf6c9e68ea4a55ef763c310ecfc9b (patch) | |
tree | 416ad9e2f06aef594714b06a91f7f379d1766749 /libar2_erase.c | |
parent | Fix previous commit (diff) | |
download | libar2-ea7d8f4a919bf6c9e68ea4a55ef763c310ecfc9b.tar.gz libar2-ea7d8f4a919bf6c9e68ea4a55ef763c310ecfc9b.tar.bz2 libar2-ea7d8f4a919bf6c9e68ea4a55ef763c310ecfc9b.tar.xz |
Refine libar2_hash_buf_size + add test + securely erase parts of the hash output buffer that is written to but is not part of the hash
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libar2_erase.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libar2_erase.c b/libar2_erase.c index 6760390..f4fa2d3 100644 --- a/libar2_erase.c +++ b/libar2_erase.c @@ -23,6 +23,9 @@ __attribute__((optnone)) __attribute__((optimize("O0"))) # endif #endif +#ifdef LIBAR2_WEAKLY_LINKED__ +LIBAR2_WEAKLY_LINKED__ +#endif void libar2_erase(volatile void *mem_, size_t size) { |