Hello, I'm very new to C/C++ and trying to get my head around AES decryption. I've searched high and low for an example but not matter what I try I just can't seem to get the desired results.
My Data is AES-256-CBC encrypted & base64 encoded - using the equivalent: "openssl enc -a -in <infile> -out <outfile> -pass pass:<pass>" cmd. Reverse decoding, decryption from cmdline works fine Given that I have read the encoded/ecnrypted data into an unsigned char * cipher and char * pwd (32bit) how should I go about implementing this pseudo code in C++? >>> unsigned char * AesDecrypt(unsigned char * cipher, int cipher_len (not sure if this should be len of encoded data?), char * pwd) { base64decode cipher; AES-256-CBC decrypt decoded cipher; return decrypted binary data; } <<<< Any help with this would be much appreciated. Thanks in advance Craig