Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

2. Identify the purpose of your speech

Answered: 1 week ago