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@iahu.ca, http://libtomcrypt.org
15
int ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_ECB *ecb)
23
if ((err = cipher_is_valid(ecb->cipher)) != CRYPT_OK) {
26
_ARGCHK(cipher_descriptor[ecb->cipher].ecb_decrypt != NULL);
28
cipher_descriptor[ecb->cipher].ecb_decrypt(ct, pt, &ecb->key);