Danger
This is a “Hazardous Materials” module. You should ONLY use it if you’re 100% absolutely sure that you know what you’re doing because this module is full of land mines, dragons, and dinosaurs with laser guns.
Decrepit Cipher Modes
This module contains decrepit cipher modes. These modes should not be used unless necessary for backwards compatibility or interoperability with legacy systems. Their use is strongly discouraged.
These modes work with Cipher
objects in the same way as modes from
modes.
- class cryptography.hazmat.decrepit.ciphers.modes.CFB(initialization_vector)[source]
Added in version 47.0.0.
CFB (Cipher Feedback) is a mode of operation for block ciphers. It transforms a block cipher into a stream cipher.
This mode does not require padding.
- Parameters:
initialization_vector (bytes-like) – Must be random and unpredictable. It must be the same length as the cipher’s block size.
- class cryptography.hazmat.decrepit.ciphers.modes.CFB8(initialization_vector)[source]
Added in version 47.0.0.
CFB8 (Cipher Feedback with 8-bit segment size) is a mode of operation similar to CFB. It operates on 8-bit segments rather than full blocks.
This mode does not require padding.
- Parameters:
initialization_vector (bytes-like) – Must be random and unpredictable. It must be the same length as the cipher’s block size.
- class cryptography.hazmat.decrepit.ciphers.modes.OFB(initialization_vector)[source]
Added in version 47.0.0.
OFB (Output Feedback) is a mode of operation for block ciphers. It transforms a block cipher into a stream cipher.
This mode does not require padding.
- Parameters:
initialization_vector (bytes-like) – Must be random and unpredictable. It must be the same length as the cipher’s block size.