Path: blob/master/libs/tomcrypt/src/modes/f8/f8_done.c
5972 views
/* LibTomCrypt, modular cryptographic library -- Tom St Denis1*2* LibTomCrypt is a library that provides various cryptographic3* algorithms in a highly modular and flexible manner.4*5* The library is free for all purposes without any express6* guarantee it works.7*/8#include "tomcrypt.h"910/**11@file f8_done.c12F8 implementation, finish chain, Tom St Denis13*/1415#ifdef LTC_F8_MODE1617/** Terminate the chain18@param f8 The F8 chain to terminate19@return CRYPT_OK on success20*/21int f8_done(symmetric_F8 *f8)22{23int err;24LTC_ARGCHK(f8 != NULL);2526if ((err = cipher_is_valid(f8->cipher)) != CRYPT_OK) {27return err;28}29cipher_descriptor[f8->cipher].done(&f8->key);30return CRYPT_OK;31}32333435#endif363738