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
9
* Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.org
15
ECB implementation, finish chain, Tom St Denis
20
/** Terminate the chain
21
@param ecb The ECB chain to terminate
22
@return CRYPT_OK on success
24
int ecb_done(symmetric_ECB *ecb)
27
LTC_ARGCHK(ecb != NULL);
29
if ((err = cipher_is_valid(ecb->cipher)) != CRYPT_OK) {
32
cipher_descriptor[ecb->cipher].done(&ecb->key);
40
/* $Source: /cvs/libtom/libtomcrypt/src/modes/ecb/ecb_done.c,v $ */
41
/* $Revision: 1.5 $ */
42
/* $Date: 2005/05/05 14:35:59 $ */