]> pd.if.org Git - zpackage/blob - libtomcrypt/src/stream/chacha/chacha_done.c
commit files needed for zpm-fetchurl
[zpackage] / libtomcrypt / src / stream / chacha / chacha_done.c
1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
2  *
3  * LibTomCrypt is a library that provides various cryptographic
4  * algorithms in a highly modular and flexible manner.
5  *
6  * The library is free for all purposes without any express
7  * guarantee it works.
8  */
9
10 #include "tomcrypt.h"
11
12 #ifdef LTC_CHACHA
13
14 /**
15   Terminate and clear ChaCha state
16   @param st      The ChaCha state
17   @return CRYPT_OK on success
18 */
19 int chacha_done(chacha_state *st)
20 {
21    LTC_ARGCHK(st != NULL);
22    XMEMSET(st, 0, sizeof(chacha_state));
23    return CRYPT_OK;
24 }
25
26 #endif
27
28 /* ref:         $Format:%D$ */
29 /* git commit:  $Format:%H$ */
30 /* commit time: $Format:%ai$ */