Chapter 6 - Crypto Flashcards
Confusion
Occurs when relationship between the plain text and the key is so complicated that an attacker can’t merely continue altering the plaintext and analyzing the resulting ciphertext to determine the key.
Diffusion
Occurs when a change in the plaintext results in multiple changes spread throughout the ciphertext.
Crypto Math AND
uses ^. Only true (1) when both X and Y are true (1).
Crypto Math OR
uses down carrot. Only false when both are false.
Crypto Math NOT
uses -. Only used on one variable at a time. X=0, -X=1
Crypto Math Exclusive OR (XOR)
Only returns true value when only one of the input values is true. Uses plus in a circle.
One way function
math function that easily produces output values for each possible combination of inputs but makes it impossible to retrieve input values.
Transposition Ciphers
Use encryption algorithm to rearrange letters of a plaintext message. Ex: apple=elppa.
Substitution Ciphers
- Use the encryption algorithm to replace each character or bit of the plaintext message with a different character. (Caesar cipher).
- More sophisticated versions use multiple alphabets. (Vigenere cipher) looks like a crossword puzzle
One Time Pads
• Use a different substitution alphabet for each letter of the plaintext message. Usually written as a very long series of numbers to be plugged into the function.
• Known as Vernam ciphers
• Must meet these requirements:
○ Pad must be randomly generated.
○ Must be physically protected against disclosure
○ Must be used once.
○ Key must be at least as long as the message to be encrypted.
○ VENONA = soviets used a pattern in key generation.
○ Hard to distribute keys, messages should be short due to key length.
Running Key Ciphers
AKA book cipher. Agree to use the same book
Block Ciphers
- Operate on chunks of a message and apply the encryption algorithm to an entire message block at the same time.
- Transposition is block cipher
- Most modern encryption algorithms implement block cipher
Stream Ciphers
Operate on one character or bit of a message at a time.
Ceasar cipher, one time pad
AES Block & Key Size
128
128,192,256
Rijndael Block & Key Size
Variable
128,192, 256