Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Christopher Martin
What is Cryptography?
There are two kinds of cryptography in the world: the
kind that will keep your kid sister from reading your
files, and the kind that will keep major governments
from reading your files
- Bruce Schneier, preface to Applied Cryptography
Cryptography is the science of keeping things secret,
this is known formally as confidentiality.
Integrity
Proof of content
Nonrepudiation
Proof of transmission
Terminology
1. Plaintext or Cleartext
The message
2. Ciphertext
3. Encryption or Enciphering
4. Decryption or Deciphering
Son of Terminology
1. Cryptography
2. Cryptanalysis
3. Cryptology
2. Cryptographic Algorithm
3. Cryptosystem
Restricted Algorithms
Symmetric
Uses one key that is shared between parties
Historical/Classical
Substitution ciphers, polyalphabetic cipers, codes
Hash
Not technically encryption algorithms but are part
of cryptography
Symmetric Encryption
Ek(M) = C, Dk(C) = M, Dk(Ek(M)) = M
The encryption key can be calculated from the
decryption key, and vice versa
Usually, however, there is only one key
Asymmetric Encryption
Ek-pub(M) = C, Dk-priv(C) = M,
Dk-priv(Ek-pub(M)) = M
Given the public key, it is computationally
infeasible to calculate the private key
Can also be used for digital signatures
Examples: RSA, DSA, ElGamal,Diffe-Hellman
Hashing Algorithms
Hashing is about integrity
There is no key involved in hashing
Takes an arbitrary sized input, and produces a
unique fixed size output
The smallest change in the input should produce a
totally different output
Attacking Cryptography
Cryptanalysis
Ciphertext Only Attack
Known Plaintext Attack
Chosen Plaintext Attack
Adaptive chosen plaintext
Conclusions
Cryptography is only one part of a multi
layered security system
Its not a magic bullet
Its fun
Sources
1. Applied Cryptography, Bruce Schneier
1996, Wiley and Sons
2. Practical Cryptography, Bruce Schneier
and Niels Ferguson
2003, Wiley Publishing
3. Silence on the Wire, Michael Zalewski
2005, No Starch Press