Coverage Report

Created: 2024-11-21 07:03

/src/libtomcrypt/src/stream/chacha/chacha_done.c
Line
Count
Source
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
*/
13
int chacha_done(chacha_state *st)
14
8
{
15
8
   LTC_ARGCHK(st != NULL);
16
8
   zeromem(st, sizeof(chacha_state));
17
8
   return CRYPT_OK;
18
8
}
19
20
#endif