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 LRW_MODE implementation, Free resources, Tom St Denis
20 @param lrw The state to terminate
21 @return CRYPT_OK if successful
23 int lrw_done(symmetric_LRW *lrw)
27 LTC_ARGCHK(lrw != NULL);
29 if ((err = cipher_is_valid(lrw->cipher)) != CRYPT_OK) {
32 cipher_descriptor[lrw->cipher].done(&lrw->key);
38 /* ref: $Format:%D$ */
39 /* git commit: $Format:%H$ */
40 /* commit time: $Format:%ai$ */