Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This lab is part of the SEED labs developed by Dr. Wenliang Du at Syracuse University, Lab Overview & Rules This lab is to study
This lab is part of the SEED labs developed by Dr. Wenliang Du at Syracuse University, Lab Overview & Rules This lab is to study building blocks of public-key cryotography and reinforce the concepts of RSA and hash function by using openssl program. You must read the instructions below before starting any task in this lab. Create a folder named Lab3 and execute all the command below under the Lab3 directory Whenever a passphrase is asked to be entered, use "seedubuntu" because it is easy to memorize The body of your lab report must include only the title of each task and the answer to each question. Task 1: Generating RSA key pair using openssl In this task, we will use openssl to generate (public, private) key pair using RSA algorithm. Step1: $openssal genrsa -aes256 -out private. pem 2048 This command is to generate a 2048-bit RSA key pair and encrypt the private key with AES-256- CBC using a key derived from the password you provide. The encrypted private key is stored in a file with Privacy Enhanced Email (PEM) format: PEM uses Base64 encoding Step2: $cat private. pem This command is to check the private key file by displaying it on the console Step 3: $openssl rsa -in private. pem -outform PEM-pubout -out public. pem This command is to derive a public key from the private key and export it to a file in PEM format. Step 4: $cat public. pem This command is to check the public key file by displaying it on the console Now, we want to find the public key {e, n) from the public key file. Type the following command to find it out. Step5. $openssl rsa -pubin -text dgst.sha512.mac Also, try two other keys with different lengths to get the keyed hashes What to be included in your report(20 pts a Present a screenshot of the result of the command What is the size in bytes) of the digital signature? 216) d 6. What is the difference between a digital signature created in the Task and in this task? HMAC-SHAS12 uses a 128-bit key. The key "abcdefg" we used in this task is shorter. How does HMAC-SHAS12 treat a key that is longer or shorter than 128 bits? Google and find an answer This lab is part of the SEED labs developed by Dr. Wenliang Du at Syracuse University, Lab Overview & Rules This lab is to study building blocks of public-key cryotography and reinforce the concepts of RSA and hash function by using openssl program. You must read the instructions below before starting any task in this lab. Create a folder named Lab3 and execute all the command below under the Lab3 directory Whenever a passphrase is asked to be entered, use "seedubuntu" because it is easy to memorize The body of your lab report must include only the title of each task and the answer to each question. Task 1: Generating RSA key pair using openssl In this task, we will use openssl to generate (public, private) key pair using RSA algorithm. Step1: $openssal genrsa -aes256 -out private. pem 2048 This command is to generate a 2048-bit RSA key pair and encrypt the private key with AES-256- CBC using a key derived from the password you provide. The encrypted private key is stored in a file with Privacy Enhanced Email (PEM) format: PEM uses Base64 encoding Step2: $cat private. pem This command is to check the private key file by displaying it on the console Step 3: $openssl rsa -in private. pem -outform PEM-pubout -out public. pem This command is to derive a public key from the private key and export it to a file in PEM format. Step 4: $cat public. pem This command is to check the public key file by displaying it on the console Now, we want to find the public key {e, n) from the public key file. Type the following command to find it out. Step5. $openssl rsa -pubin -text dgst.sha512.mac Also, try two other keys with different lengths to get the keyed hashes What to be included in your report(20 pts a Present a screenshot of the result of the command What is the size in bytes) of the digital signature? 216) d 6. What is the difference between a digital signature created in the Task and in this task? HMAC-SHAS12 uses a 128-bit key. The key "abcdefg" we used in this task is shorter. How does HMAC-SHAS12 treat a key that is longer or shorter than 128 bits? Google and find an
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started