Module refinery.units.crypto.cipher.aes

Expand source code Browse git
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from Cryptodome.Cipher import AES

from refinery.units.crypto.cipher import StandardBlockCipherUnit
from refinery.lib.crypto import PyCryptoFactoryWrapper


class aes(StandardBlockCipherUnit, cipher=PyCryptoFactoryWrapper(AES)):
    """
    AES encryption and decryption.
    """
    pass

Classes

class aes (key, *, iv=b'', padding=None, mode=None, raw=False, little_endian=False, segment_size=0, tag=None, aad=None)

AES encryption and decryption.

Expand source code Browse git
class aes(StandardBlockCipherUnit, cipher=PyCryptoFactoryWrapper(AES)):
    """
    AES encryption and decryption.
    """
    pass

Ancestors

Class variables

var block_size
var key_size

Inherited members