Electronic code book
각 block을 독립적으로 암호화
P1 => Ek => C1
P2 => Ek => C2
...
Pn => Ek => Cn
=> Plaintext block이 동일하면 cipher block도 동일함
=> 'same plaintext yields same ciphertext!'
counter mode
O : offset
= (i+O)
= ⊕
-> plain text가 암호화 되는 것은 아님.
-> counter를 통해 block의 위치 파악 가능
-> 병렬 처리 가능 (각 block이 independant 하므로)
= ⊕ ()
output feedback mode
= 0
= ()
= ⊕
Galois Counter mode
AEAD (Authenticated Encrytion with Associated Data)
암호화와 인증을 둘 다 제공
CTR 모드로 암호화 하면서 cipher text에 MAC을 추가하여 Authentication 수행
IV : Initial vector
Key : 대칭키로 암호화/복호화에 동일한 Key를 사용
Authentication Tag : Cipher Text의 무결성을 검증
AD(Auth Data) : 암호화 되는 것은 아니나 Authentication Tag를 생성하는 데 사용