3rd Cryptography Midterm quiz

Cryptography is the practice and study of hiding and securing information so that only the intended recipient can read or process it. It transforms readable data (plaintext) into an unreadable scrambled format (ciphertext) using mathematical algorithms and keys.

Modern cryptography relies on four main pillars:• Confidentiality: Ensures only authorized people can view the data.• Integrity: Guarantees data has not been changed or tampered with during storage or transfer.• Authentication: Verifies the identity of the sender and receiver.• Non-repudiation: Prevents a sender from denying they sent a

Created by: ssock
  1. A message authentication code (MAC) is attached to a message before it is sent. Which property does a MAC by itself provide?
  2. In the basic MAC picture, Alice sends Bob a message m along with a tag. What does Bob need in order to check that the tag is valid?
  3. An early idea for message integrity was to send a message with a CRC (cyclic redundancy check) checksum attached, instead of a proper MAC. Why is this insecure against an active adversary?
  4. The standard way of defining a secure MAC imagines an attacker who interacts with the MAC before attempting an attack. What is the attacker given during that interaction?
  5. A source machine sends AES-CBC packets under a fresh random IV to a server, which decrypts each one and forwards the payload to whichever port the packet header names. There is no MAC. What can an attacker who knows the header layout do to a packet in transit?
  6. Why does altering the IV let the attacker control what the first plaintext block decrypts to?
  7. Which property does authenticated encryption NOT provide on its own?
  8. In the chosen ciphertext attack model, what is the adversary given that he does not have in the weaker chosen plaintext model?
  9. Which protocol combined the two operations in the order the lecture identifies as the correct one?
  10. Why is encrypt-then-MAC the preferred order?
  11. What is the weakness of computing the authentication tag over the plaintext and sending it alongside the ciphertext, as SSH did?
  12. In an AEAD scheme, how is the associated data treated?
  13. Authenticated encryption was formalized as a notion only around 2000; before that, cryptographic libraries typically offered encryption and MAC as separate tools and left developers to combine them.
  14. In the tampering attack on the unauthenticated CBC system, the attacker must first recover the encryption key K before he can redirect the packet.
  15. When building an authenticated-encryption scheme by hand, the encryption and MAC operations should share one key so that the two stay synchronized.
  16. Fill in the blank. GCM combines CTR-mode encryption with a ____________ MAC, computed over the ciphertext.
  17. Fill in the blank. The mode that combines a CBC-MAC with CTR-mode encryption, and that secures modern Wi-Fi under the 802.11i standard, is ____________.
  18. Fill in the blank. The adversary's goal in the chosen ciphertext attack model is to break ____________.
  19. Every password-storage scheme in this lecture is judged against a single starting assumption. What is that assumption?
  20. A team proposes storing E(k, password) for every account, encrypted under one system key. Several objections are raised. Which one is the decisive argument for hashing instead?
  21. A password file stores each password encrypted with a stream-style mode under a single key. Before an attacker does anything at all to the key, what has the file already given away?
  22. In the early UNIX scheme, how was the value stored for each user computed?
  23. Why did the early UNIX scheme effectively ignore everything a user typed after the eighth character?
  24. An attacker has stolen a salted password file and wants Alice's password specifically. How much does the salt slow him down?
  25. State precisely what adding a distinct per-user salt accomplishes.
  26. A server stores x = H^100(s) for Alice. She logs in by sending p = H^99(s); the server checks that H(p) equals x, accepts her, and replaces x with p. What must she send at her next login?
  27. A website that is able to email you your existing password must be storing that password in a form it can reverse.
  28. With a twelve-bit salt, an offline dictionary attack against an entire password file becomes roughly 2 to the 12th power times more expensive.
  29. In the hotel-door scheme, a guest who enters the room many times will eventually advance the lock past their own key and be locked out.
  30. Fill in the blank. In the hotel-door scheme, the lock unlocks AND advances its stored value x only when ____________ equals x.
  31. Fill in the blank. The 2009 RockYou breach exposed about 32 million passwords; the single most common one, chosen by more than 290,000 accounts, was ____________.
  32. Fill in the blank. Modern systems store passwords using deliberately slow, memory-hard functions such as bcrypt, scrypt, and ____________.

Rate and Share this quiz on the next page!
You're about to get your result. Then try our new sharing options. smile

What is GotoQuiz? A fun site without pop-ups, no account needed, no app required, just quizzes that you can create and share with your friends. Have a look around and see what we're about.

Home
Search
Trending