Crypto.CTRMode
A mode which only uses the encryption function of the cipher.
Given a initialization vector which is treated as a large binary counter the CTR mode is given as:
As long as the initialization vector is random for each message encrypted under the same key replay and swap attacks are infeasible. CTR mode may look simple but it is as secure as the block cipher is under a chosen plaintext attack (provided the initialization vector is unique).
Types
Type | Description |
---|---|
TCTRCipherMode | CTR Cipher Mode |