Data Encryption Standard (DES) Flashcards
Block Cipher Size?
64-bit
Key Size?
56-bit
How does it work?
Long series of XOR operations
How many rounds?
16
Electronic Codebook Mode
Each time the algorithm processes a 64-bit block, it simply encrypts the block using the chosen secret key.
ECB Mode weakness?
If the algorithm encounters the same block multiple times it will produce the same encrypted block.
If an enemy were eavesdropping on the communications, they could simply build a “code book” of all the possible encrypted values.
Cipher Block Chaining Mode
Each block of unencrypted text is XORed with the block of ciphertext immediately preceding it before it is encrypted using the DES algorithm.
CBC Mode weakness?
If one block is corrupted during transmission it becomes impossible to decrypt.
Cipher Feedback Mode
Streaming cipher version of CBC.
CFB operates against data produced in real time. Uses memory buffers of the same same block size. As the buffer becomes full, it is encrypted and then sent to the recipients.
CFB Mode weakness
If one block is corrupted during transmission it becomes impossible to decrypt.
Output Feedback Mode
Operates in almost the same fashion as it does in CFB mode.
Instead of XORing an encrypted version of the previous block of ciphertext, DES XORs the plaintext with a seed value. Future seed values are derived by running the DES algorithm on the previous seed value.
Advantage of OFB mode?
There is no chaining and transmission errors do not propagate.
Counter Mode
Uses a stream cipher similar to that used in CFB and OFB modes.
Creates a seed value for each encryption/decryption operations from the results of the previous seed values, it uses a simple counter that increments for each operation.
Advantage of Counter mode?
Errors to do not propagate
Triple DES Modes?
DES-EEE3
DES-EEE2
DES-EDE2