:py:mod:`pylibressl.cipher.noauth` ================================== .. py:module:: pylibressl.cipher.noauth Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: pylibressl.cipher.noauth.BaseCipherNoauth pylibressl.cipher.noauth.AES256_CTR pylibressl.cipher.noauth.AES256_CBC pylibressl.cipher.noauth.GOST89_CTR .. py:class:: BaseCipherNoauth(key, iv) Bases: :py:obj:`pylibressl.cipher.cipher.BaseCipher` Base symmetric cipher class (without AE). .. py:method:: _init_cipher_ctx(self, is_encrypt) Initialise cipher context. Should return cipher context cdata. It should be ready to do EVP_CipherUpdate. .. py:method:: encrypt(self, data) Encrypt a message. :param data: data to encrypt as a byte string :return: encrypted message .. py:method:: decrypt(self, data) Decrypt a message. :param data: data to encrypt as a byte string :return: decrypted message .. py:class:: AES256_CTR(key, iv) Bases: :py:obj:`BaseCipherNoauth` AES 256-bit cipher in CTR (counter) mode. .. py:attribute:: _CIPHER_ID .. py:attribute:: _MODE .. py:class:: AES256_CBC(key, iv) Bases: :py:obj:`BaseCipherNoauth` AES 256-bit cipher in CBC (cipher block chaining) mode. .. py:attribute:: _CIPHER_ID .. py:attribute:: _MODE .. py:class:: GOST89_CTR(key, iv) Bases: :py:obj:`BaseCipherNoauth` GOST R 28147-89 256-bit cipher in CTR (counter) mode. .. py:attribute:: _CIPHER_ID .. py:attribute:: _MODE