Team Project #7 - HMAC-SHAI Max Score: 20 pts, Due: Thurs 5/12 Again, this is a team project. It is to create HMAC-SHA m

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Team Project #7 - HMAC-SHAI Max Score: 20 pts, Due: Thurs 5/12 Again, this is a team project. It is to create HMAC-SHA m

Post by answerhappygod »

Team Project 7 Hmac Shai Max Score 20 Pts Due Thurs 5 12 Again This Is A Team Project It Is To Create Hmac Sha M 1
Team Project 7 Hmac Shai Max Score 20 Pts Due Thurs 5 12 Again This Is A Team Project It Is To Create Hmac Sha M 1 (38.66 KiB) Viewed 62 times
Team Project 7 Hmac Shai Max Score 20 Pts Due Thurs 5 12 Again This Is A Team Project It Is To Create Hmac Sha M 2
Team Project 7 Hmac Shai Max Score 20 Pts Due Thurs 5 12 Again This Is A Team Project It Is To Create Hmac Sha M 2 (37.1 KiB) Viewed 62 times
Team Project #7 - HMAC-SHAI Max Score: 20 pts, Due: Thurs 5/12 Again, this is a team project. It is to create HMAC-SHA message authentication tags with various input formats The source code for the hash function SHAlis given on Blackboard (Proj_shal.c.zip), which is a slightly modified version from https://www.di-mgt.com.au/src/shal.c. We need you to implement a HMAC-SHAI message authentication tag generating function based on the formula given in the lecture: 1=HMACSHA1(kx)=SHATE (K A opad) SHAL ( A ipad) x)] where is the generated tag, k is the secret key, and x is the message: You will be making two functions as specified below, one for generating a tag for a string, the other for generating a tag for a given file (in any format, say, pdf, dock, exc, txt, jpeg, etc.). * \brief HMAC-SHA1 message authentication code for a string /file param msg input string param key input key param inFile input file name param mode control input parameter types return generated tag unsigned char* Himachal_str unsigned char key, unsigned char" msg, int mode) unsigned char* Hmachal_file unsigned char" key, char* in File, int mode): When mode = 0, the type for msg and key is string, mode = 1, the type for meg and key is hex: mode - 2, the type for msg and key is hase-64. Returned tag always uses hex format. Make sure your project gives the correct results with various test vectors. For example, if both secret key and msg are strings the call to Himachal_su) and the generated tag ate: Hmacshal_str("key", "The quick brown fox jumps over the lazy dog", 0); de 7c9b85b8b78aa6bc8a7a36E70a90701c9db4d9 You should test other test vectors with your code, and then compare your results with the ones from your favorite online HMAC calculators Submission Each team only needs to have one submission, it includes the following:

You will be making two functions as specified below, one for generating a tag for a string, the other for generating a tag for a given file (in any format, say, pdf, docx, exc, txt,jpeg, etc.) • brief HMAC-SHA message authentication code for a string /file param msg input string param key input key param inFile input file name param mode control input parameter types retum generated tag * unsigned char* Hmacshal_str(unsigned char key, unsigned char* msg, int mode): unsigned char* Hmacshal_filelunsigned char* key, char* inFile, int mode): When mode = 0, the type for msg and key is string mode - 1. the type for msg and key is hex, mode - 2 the type for msg and key is base-64. Returned tag always uses hex format Make sure your project gives the correct results with various less vectors. For example, if both secret key and msg are strings the call to Hmacshal_str() and the generated tag are Hmacshal_str("key", "The quick brown fox jumps over the lazy dog", 0); de 7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9 You should test other test vectors with your code, and then compare your results with the ones from your favorite online HMAC calculators. Submission: Each team only needs to have one submission, it includes the following: Source code put all source code files into one folder and zip it to TeamName_Hmacshal.zip. Before submission, make sure you code can generate tags correctly. 2. Technical report in pdf as TeamName_Himachal.pdf, which includes btitle page include team name, team members names >> Various test vectors and their results in different modes: Technical difficulties you've encountered while doing the project and the solutions to these technical difficulties What you have learned from doing this project.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply