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