Mercurial > dropbear
comparison libtomcrypt/src/misc/zeromem.c @ 1511:5916af64acd4 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 17 Feb 2018 19:29:51 +0800 |
parents | 6e09cb3d1230 |
children |
comparison
equal
deleted
inserted
replaced
1457:32f990cc96b1 | 1511:5916af64acd4 |
---|---|
3 * LibTomCrypt is a library that provides various cryptographic | 3 * LibTomCrypt is a library that provides various cryptographic |
4 * algorithms in a highly modular and flexible manner. | 4 * algorithms in a highly modular and flexible manner. |
5 * | 5 * |
6 * The library is free for all purposes without any express | 6 * The library is free for all purposes without any express |
7 * guarantee it works. | 7 * guarantee it works. |
8 * | |
9 * Tom St Denis, [email protected], http://libtom.org | |
10 */ | 8 */ |
11 #include "tomcrypt.h" | 9 #include "tomcrypt.h" |
12 #include "dbhelpers.h" | 10 #include "dbhelpers.h" |
13 | 11 |
14 /** | 12 /** |
19 /** | 17 /** |
20 Zero a block of memory | 18 Zero a block of memory |
21 @param out The destination of the area to zero | 19 @param out The destination of the area to zero |
22 @param outlen The length of the area to zero (octets) | 20 @param outlen The length of the area to zero (octets) |
23 */ | 21 */ |
24 void zeromem(void *out, size_t outlen) | 22 void zeromem(volatile void *out, size_t outlen) |
25 { | 23 { |
26 m_burn(out, outlen); | 24 m_burn((void*)out, outlen); |
27 } | 25 } |
28 | 26 |
29 /* $Source$ */ | 27 /* ref: $Format:%D$ */ |
30 /* $Revision$ */ | 28 /* git commit: $Format:%H$ */ |
31 /* $Date$ */ | 29 /* commit time: $Format:%ai$ */ |