Write C Program Using Openssl Library Encrypt Image Aes Ecb Aes Cbc Mode Respectively Requ Q37099969

Write a C program by using OpenSSL library to encrypt the imagein AES ECB and AES CBC mode respectively. You are required to useyour student id as the encryption key for encryption. Header files“openssl/conf.h, openssl/evp.h, openssl/err.h” will be used forcalling related OpenSSL functions. Using the following command lineto compile your program (assuming that your program is imageencryption.c and your executable file is named as imageencryption): $ gcc -I /usr/local/ssl/include -L /usr/local/ssl/lib-o image_encryption image_encryption.c -lcrypto -ldl

Then treat the encrypted picture as a picture, and use a pictureviewing software to display it. However, For the .bmp file, thefirst 54 bytes contain

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.