1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */ 2 /* SPDX-License-Identifier: Unlicense */ 3 4 #include "tomcrypt_private.h" 5 6 #ifdef LTC_CHACHA 7 8 /** 9 Terminate and clear ChaCha state 10 @param st The ChaCha state 11 @return CRYPT_OK on success 12 */ chacha_done(chacha_state * st)13int chacha_done(chacha_state *st) 14 { 15 LTC_ARGCHK(st != NULL); 16 zeromem(st, sizeof(chacha_state)); 17 return CRYPT_OK; 18 } 19 20 #endif 21