I am using AES CTR 128 mode and it works. I am using libssl1.0.0 (I'm not sure if I am answering the correct question! I hope this is helpful). Here is part of my code:
EVP_CipherInit_ex(ctx, EVP_aes_128_ctr(), NULL, key, iv,1); EVP_CipherUpdate (ctx, ciphertext, &len, plaintext, plaintext_len); /* Finalise the encryption. */ if(! EVP_CipherFinal_ex(ctx, ciphertext + len, &len)) handleErrors(); /*setting padding option*/ EVP_CIPHER_CTX_set_padding(ctx,0); /* Clean up */ EVP_CIPHER_CTX_free(ctx);
Zahra tarkhani
source share