Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python please Problem 4: Write a program to implement a CBC-MAC for arbitrary length messages using AES as block cipher. Input: your program should

Use python please
image text in transcribed
Problem 4: Write a program to implement a CBC-MAC for arbitrary length messages using AES as block cipher. Input: your program should take command line arguments, ask the user if they want to generate or verify the authentication tag, if they want to generate the tag, it would take message as an input, and if they want to verify the tag, it would take both the message and the tag as input. Output: If the user wants to generate the tag, your program should print the authentication tag and if the user wants to decrypt the message, it should print "valid" if the tag is valid and print "invalid" if it is not. Problem 4: Write a program to implement a CBC-MAC for arbitrary length messages using AES as block cipher. Input: your program should take command line arguments, ask the user if they want to generate or verify the authentication tag, if they want to generate the tag, it would take message as an input, and if they want to verify the tag, it would take both the message and the tag as input. Output: If the user wants to generate the tag, your program should print the authentication tag and if the user wants to decrypt the message, it should print "valid" if the tag is valid and print "invalid" if it is not

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions