Codebase list libcryptx-perl / v0.073 src / ltc / stream / chacha / chacha_done.c
v0.073

Tree @v0.073 (Download .tar.gz)

chacha_done.c @v0.073raw · history · blame

/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */

#include "tomcrypt_private.h"

#ifdef LTC_CHACHA

/**
  Terminate and clear ChaCha state
  @param st      The ChaCha state
  @return CRYPT_OK on success
*/
int chacha_done(chacha_state *st)
{
   LTC_ARGCHK(st != NULL);
   zeromem(st, sizeof(chacha_state));
   return CRYPT_OK;
}

#endif