💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.ciphers.modes captured on 2023-01-29 at 04:22:02. 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.ciphers

cryptography.hazmat.primitives

cryptography.hazmat

cryptography

cryptography.hazmat.primitives.ciphers.modes

This module has no docstring.

Classes

BlockCipherAlgorithm

block_size = <abc.abstractproperty object at 0x7f75e2db98a0>

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

CBC

_check_iv_and_key_length(self: cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
initialization_vector = <property object at 0x7f75e2de0040>
name = 'CBC'

CFB

_check_iv_and_key_length(self: cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
initialization_vector = <property object at 0x7f75e2de03b0>
name = 'CFB'

CFB8

_check_iv_and_key_length(self: cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
initialization_vector = <property object at 0x7f75e2de04a0>
name = 'CFB8'

CTR

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
name = 'CTR'
nonce = <property object at 0x7f75e2de0590>

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").
        

ECB

_check_aes_key_length(self: cryptography.hazmat.primitives.ciphers.modes.Mode, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
name = 'ECB'

GCM

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
initialization_vector = <property object at 0x7f75e2de0720>
name = 'GCM'
tag = <property object at 0x7f75e2de06d0>

Mode

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None


          Checks that all the necessary invariants of this (mode, algorithm)
          combination are met.
        
name = <abc.abstractproperty object at 0x7f75e2dba860>

          A string naming this mode (e.g. "ECB", "CBC").
        

ModeWithAuthenticationTag

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None


          Checks that all the necessary invariants of this (mode, algorithm)
          combination are met.
        
name = <abc.abstractproperty object at 0x7f75e2dba860>

          A string naming this mode (e.g. "ECB", "CBC").
        
tag = <abc.abstractproperty object at 0x7f75e2dbab00>

          The value of the tag supplied to the constructor of this mode.
        

ModeWithInitializationVector

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None


          Checks that all the necessary invariants of this (mode, algorithm)
          combination are met.
        
initialization_vector = <abc.abstractproperty object at 0x7f75e2dba980>

          The value of the initialization vector for this mode as bytes.
        
name = <abc.abstractproperty object at 0x7f75e2dba860>

          A string naming this mode (e.g. "ECB", "CBC").
        

ModeWithNonce

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None


          Checks that all the necessary invariants of this (mode, algorithm)
          combination are met.
        
name = <abc.abstractproperty object at 0x7f75e2dba860>

          A string naming this mode (e.g. "ECB", "CBC").
        
nonce = <abc.abstractproperty object at 0x7f75e2dbaaa0>

          The value of the nonce for this mode as bytes.
        

ModeWithTweak

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None


          Checks that all the necessary invariants of this (mode, algorithm)
          combination are met.
        
name = <abc.abstractproperty object at 0x7f75e2dba860>

          A string naming this mode (e.g. "ECB", "CBC").
        
tweak = <abc.abstractproperty object at 0x7f75e2dbaa40>

          The value of the tweak for this mode as bytes.
        

OFB

_check_iv_and_key_length(self: cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
initialization_vector = <property object at 0x7f75e2de02c0>
name = 'OFB'

UnsupportedAlgorithm

with_traceback(...)

  Exception.with_traceback(tb) --
      set self.__traceback__ to tb and return self.
args = <attribute 'args' of 'BaseException' objects>

XTS

validate_for_algorithm(self, algorithm: cryptography.hazmat.primitives._cipheralgorithm.CipherAlgorithm) -> None
name = 'XTS'
tweak = <property object at 0x7f75e2de0130>

Modules

abc

algorithms

typing

utils