💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.ciphers captured on 2023-01-29 at 04:20:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

🚧 View Differences

-=-=-=-=-=-=-

Back to module index

Go to module by name

cryptography.hazmat.primitives

cryptography.hazmat

cryptography

cryptography.hazmat.primitives.ciphers (package)

This module has no docstring.

Classes

AEADCipherContext

authenticate_additional_data(self, data: bytes) -> None


          Authenticates the provided bytes.
        
finalize(self) -> bytes


          Returns the results of processing the final block as bytes.
        
update(self, data: bytes) -> bytes


          Processes the provided bytes through the cipher and returns the results
          as bytes.
        
update_into(self, data: bytes, buf: bytes) -> int


          Processes the provided bytes and writes the resulting data into the
          provided buffer. Returns the number of bytes written.
        

AEADDecryptionContext

authenticate_additional_data(self, data: bytes) -> None


          Authenticates the provided bytes.
        
finalize(self) -> bytes


          Returns the results of processing the final block as bytes.
        
finalize_with_tag(self, tag: bytes) -> bytes


          Returns the results of processing the final block as bytes and allows
          delayed passing of the authentication tag.
        
update(self, data: bytes) -> bytes


          Processes the provided bytes through the cipher and returns the results
          as bytes.
        
update_into(self, data: bytes, buf: bytes) -> int


          Processes the provided bytes and writes the resulting data into the
          provided buffer. Returns the number of bytes written.
        

AEADEncryptionContext

authenticate_additional_data(self, data: bytes) -> None


          Authenticates the provided bytes.
        
finalize(self) -> bytes


          Returns the results of processing the final block as bytes.
        
update(self, data: bytes) -> bytes


          Processes the provided bytes through the cipher and returns the results
          as bytes.
        
update_into(self, data: bytes, buf: bytes) -> int


          Processes the provided bytes and writes the resulting data into the
          provided buffer. Returns the number of bytes written.
        
tag = <abc.abstractproperty object at 0x7f75e2dba0e0>

          Returns tag bytes. This is only available after encryption is
          finalized.
        

BlockCipherAlgorithm

block_size = <abc.abstractproperty object at 0x7f75e2db98a0>

          The size of a block as an integer in bits (e.g. 64, 128).
        

Cipher

decryptor(self)
encryptor(self)

CipherAlgorithm

key_size = <abc.abstractproperty object at 0x7f75e2db9840>

          The size of the key being used as an integer in bits (e.g. 128, 256).
        
key_sizes = <abc.abstractproperty object at 0x7f75e2db97e0>

          Valid key sizes for this algorithm in bits
        
name = <abc.abstractproperty object at 0x7f75e2db9720>

          A string naming this mode (e.g. "AES", "Camellia").
        

CipherContext

finalize(self) -> bytes


          Returns the results of processing the final block as bytes.
        
update(self, data: bytes) -> bytes


          Processes the provided bytes through the cipher and returns the results
          as bytes.
        
update_into(self, data: bytes, buf: bytes) -> int


          Processes the provided bytes and writes the resulting data into the
          provided buffer. Returns the number of bytes written.
        

Modules

algorithms

base

modes