PPT
PPT
First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown
Symmetric Encryption
Plaintext: This is the original message or data that is fed into the algorithm as input Encryption algorithm: The encryption algorithm performs various substitutions and transformations on the plaintext Secret key: The secret key is also input to the encryption algorithm. The exact substitutions and transformations performed by the algorithm depend on the key Ciphertext: This is the scrambled message produced as output. It depends on the plaintext and the secret key. For a given message, two different keys will produce two different.
cipher texts Decryption algorithm: This is essentially the encryption algorithm run in reverse. It takes the cipher text and the secret key and produces the original plaintext. There are two requirements for secure use of symmetric encryption: 1. We need a strong encryption algorithm. 2. Sender and receiver must have secure obtained, & keep secure, the secret key.
based on nature of the algorithm plus perhaps some knowledge of the general characteristics of the plaintext even some sample plaintext-cipher text pairs exploits characteristics of algorithm to infer specific plaintext or key
brute-force
attack
try all possible keys on some cipher text until get an intelligible translation into plaintext
Triple-DES
a better replacement for DES NIST called for proposals in 1997 selected Rijndael in Nov 2001 published as FIPS 197 symmetric block cipher uses 128 bit data & 128/192/256 bit keys now widely available commercially
Message Authentication
protects
can
only sender & receiver have key needed Error detection code and sequence number is used for alteration in msg
Without
msg encription append authentication tag to cleartext message and not provide confidentiality To combine authentication and confidentiality in single algo by encrypted msg plus its authentication tag
Message Auth
applied to any size data H produces a fixed-length output. H(x) is relatively easy to compute for any given x one-way property
Hash Functions
two
attack approaches
cryptanalysis
exploit logical weakness in alg
brute-force attack
trial many inputs strength proportional to size of hash code (2n/2)
SHA
SHA-1 gives 160-bit hash more recent SHA-256, SHA-384, SHA-512 provide improved size and security
2.
3. 4. 5. 6.
computationally easy to create key pairs computationally easy for sender knowing public key to encrypt messages computationally easy for receiver knowing private key to decrypt ciphertext computationally infeasible for opponent to determine private key from public key computationally infeasible for opponent to otherwise recover original message useful if either key can be used for each role
developed in 1977 only widely accepted public-key encryption alg given tech advances need 1024+ bit keys
only allows exchange of a secret key provides only a digital signature function with SHA-1 new, security like RSA, but with much smaller keys
Digital Envelopes
Random Numbers
random
based on statistical tests for uniform distribution and independence successive values not related to previous clearly true for truly random numbers but more commonly use generator
unpredictability
true
approaches
back-end appliance library based tape encryption background laptop/PC data encryption
Summary
introduced
cryptographic algorithms symmetric encryption algorithms for confidentiality message authentication & hash functions public-key encryption digital signatures and key management random numbers