







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































Disk File 1 File 2 Alice Alice No eavesdropping No tampering Analogous to secure communication: Alice today sends a message to Alice tomorrow
E, D: cipher k: secret key (e.g. 128 bits) m, c: plaintext, ciphertext n: nonce (aka IV) Encryption algorithm is publicly known
Stream ciphers: RC4 (126 MB/sec) , Salsa20/12 (643 MB/sec) key PRG message
ciphertext
1
1
2
2
1
2
1
2
1
2
1
2
key k key expansion k 1 k 2 k 3 kn R(k 1
R(k 2
R(k 3
k n
Correct use of block ciphers I: CBC mode E(k,⋅) E(k,⋅) E(k,⋅) IV m[0] m[1] m[2] m[3] ⊕ ⊕ ⊕ E(k,⋅) ⊕ IV c[0] c[1] c[2] c[3] ciphertext E a secure PRP. Cipher Block Chaining with random IV: Q: how to do decryption?
CBC with Unique IVs E(k,⋅) E(k,⋅) E(k,⋅) m[0] m[1] m[2] m[3] ⊕ ⊕ ⊕ E(k,⋅) ⊕ IV c[0] c[1] c[2] c[3] ciphertext IV E(k 1 ,⋅)
unique IV means: (k,IV) pair is used for only one message. generate unpredictable IV’ as E(k 1 ,IV)