Decrypt RSA
The file s81170-cipher.bin contains data encrypted using the ARIA-128-CBC method.
First decrypt data in the file s81170-cipheredkey.bin. They were encrypted with RSA and can be decrypted with the function RSA_private_decrypt (). Optimal asymmetric encryption padding was used. You must therefore specify RSA_PKCS1_OAEP_PADDING as a parameter. You can work with the function PEM_read_PrivateKey () from the file rsakey.pem.
Now decrypt the data in the file s81170-cipher.bin. The type of the ARIA-128-CBC procedure is returned by the EVP_aria_128_cbc () function in libcrypto. Using the key parameter (key, possibly initialization vector, in this sequence), you have decrypted in the last step. The length of the required parameters can be determined from the type with the functions EVP_CIPHER_key_length () and EVP_CIPHER_iv_length ().
Encrypt the plain text with the cipher CAST5-CFB, the type of which returns the function EVP_cast5_cfb64 (). Using the key parameters (key, possibly initialization vector, in this sequence), the in immediate sequence in the file s81170-key.bin existing.
Save the encrypted data in a file called s81170-result.bin.
Please limit yourself to a source code file s81170.c
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.