Block Cipher Modes of Operation: Electronic Code Book (ECB)
Block Cipher Modes of Operation: Electronic Code Book (ECB)
Advantages:
Parallel encryption of blocks of bits is possible, thus it is a faster way of encryption.
Drawbacks:
Prone to cryptanalysis since there is a direct relationship between plaintext and ciphertext .
Message repetitions may show in ciphertext.
Application where the particular mode can be used:
Secure transmission of single values.
Any application data usually have partial information which can be guessed.
Advantages:
Advantage of CBC over ECB is that changing IV results in different ciphertext for identical
message.
Drawbacks:
Parallel encryption is not possible since every encryption requires previous cipher.
In this mode, the cipher is given as feedback to the next block of encryption with some new
specifications: first an initial vector IV is used for first encryption and output bits are divided as set
of n bits, the left-hand side s bits are selected and are applied an XOR operation with plaintext bits.
The result given as input to a shift register and the process continues.
Advantages:
Since, there is some data loss due to use of shift register, thus it is difficult for applying
cryptanalysis.
CFB feed back gives the cipher text which we can get save inside any memory. That you access
both cipher and decipher text.
Drawbacks:
CPU is not free during the whole process of the cipher text.
It is time containing process.
Drawbacks:
The disadvantage of OFB is that it is more vulnerable to a message stream modification attack
than is CFB.
Advantages:
The CTR mode is independent of feedback use as it can be implemented in parallel.
Drawbacks:
The serious disadvantage of CTR mode is that it requires a synchronous counter at sender and
receiver. Loss of synchronization leads to incorrect recovery of plaintext.