So here's my problem: I have 3 files. One is
ciphertext.enc, which is a text encrypted using AES 256. The second one is
key.cipher, which is
ciphertext.enc's key. This
key.cipher was encrypted using a public RSA key. The third file is
pub.key, the public RSA key used to encrypt
Is also known that openssl was used to perform these encryptions. No more information is given.
The objective is to obtain the original text contained in
ciphertext.enc, but i'm a little lost on how to procceed. I understand the basics behind AES and RSA, but i'm not familiar with them in practice, specially openssl. How should i procceed with this problem?
pub.key may actually be the RSA private. This is part of an exercise which i couldn't find an answer.
Also, just to clearify the problem: I have a message encrypted with AES. I also have the AES key, but the key was encrypted using the RSA key
pub.key (which acording to the exercise is a public key). The objective is to find out what is the message - probably breaking
key.cypher in order to decrypt