跳转至

Mode of operations (on block cipher)

How to encrypt arbitrary length of message with a block cipher?

Padding

  1. Add a single "1"
  2. then add "0"s to complete the final block

ECB(Electronic CookBook) mode

Independently.

image-20221021010409605

TOTALLY INSECURE: like a great substitution cipher

CBC(Cipher Block Chaining) mode

image-20221021010547522

image-20221021010850901

Generally secure.

CFB(Cipher Feedback) Mode

image-20221021010736352

OFB(Output Feedback) Mode

CTR(counter) Mode

image-20221021011207465