X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=tom_crypto.c;h=79bd2023f800cc15d694d605a1e8f718b21c9b29;hp=cdb02d05aee3f46b71f01f0e3f2dd2728fc3431d;hb=5209d095d51e534ca1ca5fc47d637662df9a1eae;hpb=5a0ef35c9d77bedabd249fb7f47d94a6f54b5082 diff --git a/tom_crypto.c b/tom_crypto.c index cdb02d0..79bd202 100644 --- a/tom_crypto.c +++ b/tom_crypto.c @@ -5,13 +5,13 @@ 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)