cryptolib -- Cryptographic ciphers. =================================== .. This document was autogenerated by Sphinx-autoapi from a .pyi stub or a source code file. .. Do not edit this file, instead edit the source file and run Sphinx to update. .. Source: docs/stubs/cryptolib/__init__.pyi .. py:module:: cryptolib .. autoapi-nested-parse:: Cryptographic ciphers. Classes ------- .. autoapisummary:: cryptolib.aes Module Contents --------------- .. py:class:: aes(key, mode, IV: Optional[Any] = None) .. py:method:: decrypt(in_buf, out_buf: Optional[Any] = None) -> _typeshed.Incomplete Like `encrypt()`, but for decryption. .. py:method:: encrypt(in_buf, out_buf: Optional[Any] = None) -> _typeshed.Incomplete Encrypt *in_buf*. If no *out_buf* is given result is returned as a newly allocated `bytes` object. Otherwise, result is written into mutable buffer *out_buf*. *in_buf* and *out_buf* can also refer to the same mutable buffer, in which case data is encrypted in-place.