Computer Science

Consider the following protocol for adding money to a debit card.

(i) User inserts debit card into debit card machine.

Don't use plagiarized sources. Get Your Custom Essay on
Computer Science
Just from $13/Page
Order Essay

(ii) Debit card machine determines current value of card (in dollars), which is stored in variable x.

(m) User inserts dollars into debit card machine and the value of the inserted dollars is stored in variable y.

(iv) User presses enter button on debit card machine.

(v) Debit card machine writes value of x + y dollars to debit card and ejects card.

Recall the discussion of race conditions in the text. This particular protocol has a race condition.

a. What is the race condition in this protocol?

b. Describe a possible attack that exploits the race condition.

c. How could you change the protocol to eliminate the race condition, or at least make it more difficult to exploit?

Place Order
Grab A 14% Discount on This Paper
Pages (550 words)
Approximate price: -
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Try it now!

Grab A 14% Discount on This Paper

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.