Skip to content
Classical Cryptography

Classical Cryptography

Private-key Cryptography

Symbols

NotationDefinition
kkSecret key
KKKey space
ccCiphertext
mmMessage / plaintext
MMMessage space
GenGenKey-generation algorithm
EncEncEncryption algorithm
DecDecDecryption algorithm

Encryption and Decryption Process

  • Key-generation:

    Use the algorithm GenGen to generate a secret key kKk \in K

  • Encryption:

    Input the secret key kk, and a message mMm \in M

    Output the ciphertext cc

    cEnck(m) c \gets Enc_k(m)
  • Decryption

    Input the secret key kk, and the ciphertext cc

    Output the plaintext mm, or an error

    mDeck(c) m \coloneqq Dec_k(c)

Kerckhoffs’s Principle

  • The encryption scheme is not secret
    • The attacker knows the encryption scheme
    • Only the key is secret
    • The key must be chosen randomly, and be kept secretly
Last updated on