1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
6
* The library is free for all purposes without any express
9
* Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.org
15
CTR implementation, finish chain, Tom St Denis
20
/** Terminate the chain
21
@param ctr The CTR chain to terminate
22
@return CRYPT_OK on success
24
int ctr_done(symmetric_CTR *ctr)
27
LTC_ARGCHK(ctr != NULL);
29
if ((err = cipher_is_valid(ctr->cipher)) != CRYPT_OK) {
32
cipher_descriptor[ctr->cipher].done(&ctr->key);
40
/* $Source: /cvs/libtom/libtomcrypt/src/modes/ctr/ctr_done.c,v $ */
41
/* $Revision: 1.4 $ */
42
/* $Date: 2005/05/05 14:35:59 $ */