What mac should accompany the forged message to convince bob

Assignment Help Computer Engineering
Reference no: EM131347184

1. Each employee in your company has chosen a password for logging in to the computer system. Recently, your company has decided that each employee's password should be secret-shared among two other employees, just in case. Each password can be represented by a number from 0 to 9999. Your job is to choose the secret-sharing scheme. You can assume that the two employees holding shares of their co-worker key will not collaborate to determine the key except in an official emergency. You consult with your three underlings, Larry, Moe, and Curly...

•Larry says:

"For each secret password s to be shared, choose a random number b uniformly from 0 to 9999. The number b is the first share. Let c = s - b (mod 10000). The number c is the second share."

•Moe says:

"I agree with Larry's suggestion except for one thing. If the random number b is 0, the share c is the same as the secret. That's not very secure! I therefore propose that the number b be chosen uniformly from 1 to 9999 instead of from 0 to 9999."

•Curly says:

"I agree with Moe's suggestion except for one thing. If the random number b is less than 10, then the share c will probably have the same hundreds place digit and the same thousands place digit as the secret s. That's not very secure! I therefore propose that the number b be chosen uniformly from 10 to 9999."

Whose scheme is most secure, and why? Consider in particular how much the person receiving the share c thereby learns about the secret s.

2. In order that the secret combination to the CS007 safe would be available in an emergency situation, the TAs have each been given part of the secret. The secret consists of four mod-7 blocks. For each of these numbers, Prof. Klein chose a mod-7 line-the slope of the line is the secret number and the y-intercept was chosen randomly. Prof. Klein then provided each TA with an (x, y) point on each of the lines. Thus Kevin got a point on each of the four lines (namely the points with x-coordinate 1), Mark got a point on each of the four lines (namely the point with x-coordinate 2), and Sheryl got a point on each of the four lines (with x-coordinate 3). Due to a security slipup, you happen on a few of the y-coordinates, as shown in the following table.

(a) For each block of the secret that can be determined from the information given you, give us the block, showing your work.

(b) For each block of the secret that cannot be determined from the information you have, tell us why it cannot be determined and tell us what possible values that block has.

3. You have seen the threshold secret-sharing scheme: each person who is supposed to share the key gets a point on a line and the secret is the y-intercept of that line. Say we have divided up the key among several people, and you and one other person have gotten together to combine your keys. Your point is x = 4 and y = 8, and your partner's point is x = 5 and y = 0. The modulus is 11. What is the secret?

4. In this problem we address the use of a MAC (message authentication code). The modulus for this problem is 11. Alice and Bob have previously agreed upon a secret key consisting of the two mod-11 numbers a and b. Thus the MAC function is

f (x) = ax + b

so when Alice sends a message X, she should accompany the message with the MAC f(X).

If Alice and Bob had been paying attention, they would know that the MAC is secure only if the key is used once. Unfortunately, they missed this fact, and they send two distinct messages with MACs derived using the same key (the same pair of numbers a and b). You, Eve, intercept these messages and MACs:

message: 4, MAC: 5
message: 1, MAC: 9

You decide to tamper with the second message, changing it to 3. What MAC should accompany this forged message to convince Bob that it is legitimate?

5. Alice plans to send Bob a message accompanied by a MAC. (The method for generating the MAC is the one described in the text.) They have previously agreed on a uniformly random secret key for use with the MAC. The message will be sent in plaintext. The set of possible messages is 0, 1, . . . , 12 and the set of possible values of the MAC is also 0, 1, . . . , 12. Calculation of the MAC value is done modulo 13.

Eve plans to intercept the message and MAC, and send her own (fake) message, namely 12. She must also pick a fake MAC to accompany this message; her hope is to fool Bob into accepting the fake message as really being from Alice. She therefore needs to know the probability distribution for the MAC that should accompany the message 12 (i.e., if Alice were to send the message 12, what is the distribution of the MAC that would accompany that message?) Eve knows that the key for the MAC was chosen randomly and uniformly.

In each of the following scenarios, help Eve by sketching the distribution of the value of the MAC that should accompany her fake message.
(a) Eve must choose her fake MAC before seeing either the true message or the true MAC. Give the distribution of the MAC that would accompany the message 12.

(b)Eve has intercepted the true message, 1, and the accompanying MAC, 2. Given what Eve now knows, sketch the distribution of the MAC that would accompany the message 12.

6. Prof. Klein wants to provide the CS007 safe's combination to the teaching assistants using secret-sharing. The combination is known to be an eight-digit number. Prof. Klein chooses mod-108 numbers p, q, r, s, t so that they obey the following equations.

p + q ≡ the safe's combination (mod 108)
r + s + t ≡ q (mod 108)
r + q ≡ the safe's combination (mod 108)

(Obviously, Prof. Klein has inhaled a bit too much chalk dust and has gotten confused about secret sharing.) He provides p to Kevin, q to Mark, r to Sandy, s to Sheryl, and, still confused, t to Kevin.

For each group of TA's given below, say whether or not the group can collectively figure out the combination.

(a)Sandy and Sheryl and Mark
(b)Kevin alone
(c)Sandy and Kevin
(d)Sheryl and Mark
(e)Sandy and Mark

7. (a) Wandering outside the TA Room, you notice that on the bulletin board in that room is the following message:

"Kevin: I looked over the midterm of one of the students. The student's score should be raised by 20 points. I have encrypted the initials of the student using a one-time pad with modulus 26: For each block,

cyph = plain + key (mod 26)

The cyphertext is 10 12. The key will appear on a note I'll slip under the door. Signed, Sandy"

You see the piece of paper containing the key on the floor just inside the (locked) door.

It's folded, so you can't actually read the key. However, you decide to choose your own, fake key, write it on a similar piece of paper, and slide it under the door in the hope Kevin sees your piece of paper instead of Sandy's.

Can you come up with a key that would lead Kevin to add twenty points to your midterm score? If so, give such a key. If not, explain why not. Show your work.

(b)Now you are Kevin. You visit the TA Room and see the following message:

Kevin: Another student deserves a higher midterm score. Using the same encryption scheme as before, one-time pad with modulus 26, I've encrypted the initials of the student. The cyphertext is 17 23. To avoid the fiasco of last week, I've also calculated a MAC for each block of the plaintext using the formula

f (x) = Ax + B rem 26

The MAC for the first block is 23, and the MAC for the second block is 7.

You see three folded-up sheets of paper with encryption keys written on them: "5 18," "12 20," and "19 0". You also see a sheet with a pair of MAC keys: "For first block, A = 1, B = 25, and for second block, A = 1, B = 10."

Assuming the MAC keys are correct, what is the correct plaintext?

Reference no: EM131347184

Questions Cloud

House in the future and recently received an inheritance : Future Value. You are hoping to buy a house in the future and recently recieved an inheritance of $22,000. You intend to use your inheritance as a down payment on your house. How long will it take to grow to $32,000 if you move into an account that p..
Expected to use the incremental cash flow approach : You are expected to use the incremental cash flow approach to calculate NPV of the replacement capital. What are the cash flow consequences of selling the old machine today instead of in 5 years?
Make a list of some of the issues : Make a list of some of the issues that will need to be resolved if American Airlines decides to routinely charge different prices to customers in the same class of service.
If firm borrowing rate exceeds its roa then roe : If a firm’s borrowing rate exceeds its ROA, then ROE will ______.
What mac should accompany the forged message to convince bob : You decide to tamper with the second message, changing it to 3. What MAC should accompany this forged message to convince Bob that it is legitimate?
Long-term debt accounts of huge-packing change : In 2015 Huge-Packing repurchased shares of common stock worth $5,241 million and made dividend payments of $894 million. Other financing activities raised $196 million, and Huge-Packing's total cash flow from financing was -$6,077 million. How much d..
Chains in-house instead of purchasing them from supplier : A bicycle manufacturer currently produces 206,000 units a year and expects output levels to remain steady in the future. It buys chains from an outside supplier at a price of $1.90 a chain. If the company pays tax at a rate of 35% and the opportunity..
When evaluating stock performance : When evaluating stock performance, ____ measures variability that is systematically related to market returns; ____ measures total variability of a stock's returns. If security prices fully reflect all market-related information (such as historical p..
Draw a diagram and calculate the expected monetary value : Draw a diagram and calculate the expected monetary value (EMV) for each project. Write a paragraph explaining which project(s) you would choose to bid.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the fundamental elements of an effective security

What are the three fundamental elements of an effective security program for information systems? Of these three fundamental controls, which two are used by the Domain User Admin to create users and assign rights to resources?

  Discussion about the different design choices made

Provide a solution to a hypothetical scenario. The assignment implies that you have a good understanding of the Cloud Reference Model and its segmentation into the three key market offerings

  Output of convolution

Convolve sub-image shown below with the 3x3 mean filters. Specify the output of convolution at the center entry of sub-image?

  Program in visual basic to calculate area of a triangle

Write down a program in the visual basic which determines the area of a triangle. If three sides a, b and c entered do not make a triangle transmit the message out to the screen that the data entered was invalid.

  Use the web to research and evaluate security products from

in a two-page apa formatted paper provide analysis answering the followinguse the web to research and evaluate security

  Questionstatus your own position privacy in age of the

questionstatus your own position privacy in age of the internet and offer a defense for it. using ethical dialectical

  Choose a company intranet or portal and describe the object

choose a company Intranet or Portal and describe the object.

  Explain what is the purpose of the business impact analysis

What is the purpose of the business impact analysis (BIA)? What is the difference between a disaster recovery plan (DRP) and a business continuity plan (BCP)?

  Write down a c function that adds the values

Write a C function that adds the values of all elements in a two-dimensional array that is passed to the function, suppose that the array is an array of double-precision numbers having 4 rows and 5 columns.

  Why embedded system processor would use concurrent processes

Explain why embedded system processor would use concurrent processes to control an alarm system in a home. Door and Window switches, motion detector all controlled through a central panel.

  Preventing the pci specifications

To prevent having the whole network subject to the PCI specifications, how would you segment the network in order to decrease the scope of compliance?

  Describe key ethical concerns raised by carol actions

CIS52005 Research Report Assignment. Identify and describe key ethical concerns raised by Carol's actions outlined in this case study? Identify and describe how specific values of ACS Code of Professional Practice would provide guidance on how to de..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd