static int tom_encrypt(void *pt, int ptlen, void *key, int keylen,
void *ct, int *ctlen)
{
- symmentric_cbc cbc;
+ symmetric_CBC cbc;
unsigned char iv[16] = {0};
int index, err;
if ((index = register_cipher(&aes_desc)) == -1) return -1;
// if ((index = find_cipher("aes")) == -1) return -1;
- cipher = cipher_descriptor[index];
+ // cipher = cipher_descriptor[index];
if ((err = cbc_start(index, iv, key, keylen, 0, &cbc)) != CRYPT_OK)
return err;
if ((err = cbc_encrypt(pt, ct, ptlen, &cbc)) != CRYPT_OK)