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_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_ECB *ecb)
22
if ((err = cipher_is_valid(ecb->cipher)) != CRYPT_OK) {
25
cipher_descriptor[ecb->cipher].ecb_encrypt(pt, ct, &ecb->key);