1/54
Looks like no tags are added yet.

B
Symmetric encryption uses 1 shared secret key to encrypt and decrypt. Asymmetric encryption uses a public/private key pair.

C
Encrypt with the receiver’s public key, so only the receiver’s private key can decrypt.

C
Active attacks modify data or the system.

A
Passive attacks don’t change anything, so there is nothing to detect.

C
Unconditional security means secure even against unlimited computing power, because the ciphertext gives no information about the plaintext.

B
There are 2^128 possible keys. On average you find the right one after searching half the keyspace.

C
128 bits is the modern minimum and 256 gives a long-term margin.

C
each of n bits is 0 or 1, giving 2^n blocks. a reversible mapping is a permutation of those 2^n blocks, and there are (2^n)! permutations.

C
to pick 1 of (2^n)! possible permutations you need log2((2^n)!) bits.

B
Diffusion spreads the plaintext statistics across the ciphertext.

B
confusion hides the key-to-ciphertext relationship, and non-linear S-boxes do that.

A

B
AES always uses a 128-bit block. AES-128 has a 128-bit key and 10 rounds.

B
only the key length changes, and the block is always 128 bits.

B

A

B
In CBC, you XOR the plaintext with the previous ciphertext block, then encrypt. To decrypt, you decrypt first, then XOR with the previous ciphertext.

B
For confidentiality, encrypt with the receiver’s public key so only the receiver’s private key can decrypt.

C
Only A holds PR_a, so a signature made with it proves origin and gives non-repudiation. Anyone, including B, can verify it with A’s public key PU_a.

A
Encrypting K_s under PU_b means only B can recover it. The two then use fast symmetric encryption with K_s.

B
Encryption with the public key must be easy so anyone can do it. Deriving the private key from the public key must be infeasible, and so must recovering M without the private key.

C

C

B

C
OFB and CTR both generate a keystream that is XORed with the plaintext, so no padding is needed.

A
This is the extension forgery. The attacker gets a valid tag without knowing K.

B
Using different subkeys keeps padded and unpadded messages from colliding and fixes the CBC-MAC length issue.

B
With x fixed, finding another y with the same hash is a second preimage.

C
Encoding the length makes padding unambiguous, so messages of different lengths cannot pad to the same blocks.

(a) CBC encryption is sequential because each block needs the previous ciphertext. CTR is fully parallel in both directions, since each keystream block is independent and can be precomputed.
(b) In CBC, a flipped bit in C_i garbles all of P_i and flips the same bit in P_(i+1). In CTR, only the corresponding single bit of P_i flips, with no other propagation.

1) Prepend the message length as the first block. Then X is no longer a prefix of X II, since the lengths and therefore the first blocks differ, so the chaining trick fails.
2.) Encrypt the last block with an independent second key K2. The attacker never sees the raw chaining value, so it cannot be XORed in to splice messages together.

It is done using left shifts and conditional XOR with Rb. If the final block is complete, it is XORed with K1. If incomplete, it is padded with a 1 bit followed by zeros and XORed with K2.

HMAC(K,M) = H((K’XOR opad) || H((K’ XOR ipad) || M)). The inner hash processes the message, while the outer hash authenticates the result. Using 2 hashes prevents length-extension attacks associated with simply computing.

MD5 appends a 1 bit, followed by 7 0 bits, to the 440-bit message, bringing it to 448 bits. It then appends the original message length as a 64-bit little-endian integer, resulting in a 512-bit block.

A

B
An SA is identified by SPI, destination IP address, and security protocol.

B

B
SKEYSEED is derived from the Diffie-Hellman shared secret and both nonces, providing the foundation for subsequent encryption and integrity keys.

D
ESP provides confidentiality through encryption, while AH does not.















