AES (aes-cbc-128, aes-cbc-192, aes-cbc-256) encryption/decryption with openssl C
问题 I just want to test AES from openSSL with this 3 modes: with 128,192 and 256 key length but my decrypted text is different from my input and I dont know why. Also, when I pass a huge inputs length (lets say 1024 bytes) my program shows core dumped ... My input is always the same but it doesnt matter, at least for now. Heres the code: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <openssl/aes.h> int main(int argc, char **argv) { int i; int keylength; printf("Give a key