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