comparison libtomcrypt/src/misc/zeromem.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children 6e09cb3d1230
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
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(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$ */