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 k∈Kk \in K

  • Encryption:

    Input the secret key kk, and a message m∈Mm \in M

    Output the ciphertext cc

    c←Enck(m) c \gets Enc_k(m)
  • Decryption

    Input the secret key kk, and the ciphertext cc

    Output the plaintext mm, or an error

    m≔Deck(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