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