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
13 CTR implementation, finish chain, Tom St Denis
18 /** Terminate the chain
19 @param ctr The CTR chain to terminate
20 @return CRYPT_OK on success
22 int ctr_done(symmetric_CTR *ctr)
25 LTC_ARGCHK(ctr != NULL);
27 if ((err = cipher_is_valid(ctr->cipher)) != CRYPT_OK) {
30 cipher_descriptor[ctr->cipher].done(&ctr->key);
38 /* ref: $Format:%D$ */
39 /* git commit: $Format:%H$ */
40 /* commit time: $Format:%ai$ */