CECS 378 - Quiz 3

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:05 AM on 9/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

During AES-GCM decryption, when may an application parse the plaintext?

Only after tag verification succeeds

2
New cards

A FileDrop design uses one global GCM nonce counter, but servers can roll back to an older snapshot and reuse counter values. What is the redesign?

Use a nonce-allocation scheme that remains unique across servers and rollback, or rotate to a new key namespace

3
New cards

A CBC encryption API permits the caller to choose the IV after seeing the plaintext. Which property required by CBC is missing?

The IV must be unpredictable when the plaintext is chosen

4
New cards

An image archive encrypts each 16-byte block independently with the same AES key. Reviewers can still recognize repeated regions in encrypted images. Which mode caused the problem?

ECB

5
New cards

A developer selects CTR because it supports parallel and random-access processing. Which additional control is still required?

Authentication of the ciphertext and relevant metadata

6
New cards

A service repeats a 96-bit AES-GCM nonce under the same key. Which statement is MOST accurate?

Plaintext relationships may be exposed and authentication security can also fail

7
New cards

A file service needs random-access decryption and must avoid exposing repeated plaintext blocks. It will authenticate records separately. Which design meets these requirements?

CTR with counter blocks that never repeat under the key.

8
New cards

An application returns detailed GCM errors such as 'wrong account ID,' 'bad tag,' and 'invalid ciphertext byte.' What is the safest behavior?

Return one generic failure and record only safe diagnostic information

9
New cards

A team must protect arbitrary-length files and wants confidentiality plus integrity in one supported construction. Which choice is BEST for a new design?

AES-GCM with disciplined nonce management

10
New cards

The same plaintext encrypted twice produces different valid ciphertexts under one key. Which input directly provides this freshness?

A fresh nonce or IV used according to the mode's requirements

11
New cards

Two CTR ciphertexts were produced with the same key and nonce. Which relationship will an attacker obtain by XORing them?

m1 XOR m2

12
New cards

Which input to an AEAD operation is protected from modification but remains visible?

Associated data

13
New cards

A file format keeps the account ID and version outside the ciphertext but must detect changes to both. What is the BEST AES-GCM design?

Supply the account ID and version as associated data

14
New cards

A system needs a nonce for a construction that requires uniqueness but not unpredictability. Which generator is the BEST choice if state is reliably preserved?

A monotonically increasing counter

15
New cards

A team generates random nonces and assumes repetition is impossible. What is the BEST review comment?

Randomness reduces collision probability but does not guarantee uniqueness

16
New cards

Which record contains the minimum information needed to decrypt and authenticate a versioned AES-GCM file later?

Format version, nonce, ciphertext, and tag; the key is retrieved separately

17
New cards

Why does CBC pad a final partial block?

AES accepts only complete 16-byte blocks

18
New cards

A developer says, 'CBC hides repeated blocks, so it authenticates the file.' What is the response?

Incorrect; CBC confidentiality does not detect controlled modification and must be authenticated

19
New cards

A CBC service reports 'bad padding' differently from 'invalid record.' What attack does this behavior MOST directly enable?

Padding oracle

20
New cards

An attacker changes one byte of AES-GCM ciphertext. The receiver uses the correct key, nonce, and associated data. What should happen?

Tag verification fails and no plaintext is used