Module refinery.units.crypto.cipher.cast
Expand source code Browse git
from __future__ import annotations
from Cryptodome.Cipher import CAST
from refinery.lib.crypto import PyCryptoFactoryWrapper
from refinery.units.crypto.cipher import StandardBlockCipherUnit
class cast(StandardBlockCipherUnit, cipher=PyCryptoFactoryWrapper(CAST)):
"""
CAST encryption and decryption.
"""
Classes
class cast (key, *, iv=b'', padding=None, mode=None, raw=False, little_endian=False, segment_size=0, tag=(), aad=b'')
-
CAST encryption and decryption.
Expand source code Browse git
class cast(StandardBlockCipherUnit, cipher=PyCryptoFactoryWrapper(CAST)): """ CAST encryption and decryption. """
Ancestors
Subclasses
Class variables
var block_size
var key_size
Inherited members