File is encrypted on linux machine using:
openssl aes-256-cbc -a -salt -in infile -out outfile -kfile passwordfile
Where the password file was just a 32 byte character string.
Now I need to decrypt in c++ app. I assume this is possible, but not sure exactly what calls to make - should something like this work?
AES_cbc_encrypt(data, outData, data_size, &dec_key, ivec, AES_DECRYPT);
But this takes a key, not a password file - how does one create key from password file or am I totally in left field here?