Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with the following programming in C: 2. Programming with ciphers of OpenSSL (80 points) A. You need to develop 2 C programs DES_ECB_Enc.c

Please help with the following programming in C:

image text in transcribed

2. Programming with ciphers of OpenSSL (80 points) A. You need to develop 2 C programs "DES_ECB_Enc.c" and "DES_ECB Dec.c" that use the ECB mode DES cipher in OpenSSL to encrypt or decrypt a given file (of arbitrary length) into another encrypted or the decrypted file with any given encryption key and IV. Specifically, the programs need to support the following commands line arguments and usage DES-ECB-Enc -k -i -o DES-ECB-Dec -k -i -o where contains the 32-byte encryption key in hex format; contains the 8-byte IV in hex format; is the name of the input file (e.g., plaintext or cipertext): is the name of the output file (e.g., cipher text or plaintext). Note: and are text files, input file could be either text or binary file; output files is a binary file. The programs need to do basic sanity check on , IV file>, and gracefully exit when any illegitimate file is found (e.g., the -i -o DES-ECB-Dec -k -i -o where contains the 32-byte encryption key in hex format; contains the 8-byte IV in hex format; is the name of the input file (e.g., plaintext or cipertext): is the name of the output file (e.g., cipher text or plaintext). Note: and are text files, input file could be either text or binary file; output files is a binary file. The programs need to do basic sanity check on , IV file>, and gracefully exit when any illegitimate file is found (e.g., the

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Progress Monitoring Data Tracking Organizer

Authors: Teacher'S Aid Publications

1st Edition

B0B7QCNRJ1

More Books

Students also viewed these Databases questions