1 // SPDX-License-Identifier: BSD-2-Clause 2 /* LibTomCrypt, modular cryptographic library -- Tom St Denis 3 * 4 * LibTomCrypt is a library that provides various cryptographic 5 * algorithms in a highly modular and flexible manner. 6 * 7 * The library is free for all purposes without any express 8 * guarantee it works. 9 */ 10 11 #include "tomcrypt_private.h" 12 13 #ifdef LTC_SALSA20 14 15 /** 16 Terminate and clear Salsa20 state 17 @param st The Salsa20 state 18 @return CRYPT_OK on success 19 */ salsa20_done(salsa20_state * st)20int salsa20_done(salsa20_state *st) 21 { 22 LTC_ARGCHK(st != NULL); 23 XMEMSET(st, 0, sizeof(salsa20_state)); 24 return CRYPT_OK; 25 } 26 27 #endif 28 29 /* ref: $Format:%D$ */ 30 /* git commit: $Format:%H$ */ 31 /* commit time: $Format:%ai$ */ 32