💾 Archived View for tris.fyi › pydoc › cryptography.hazmat.primitives.ciphers.modes captured on 2022-07-16 at 15:06:35. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

➡️ Next capture (2023-01-29)

🚧 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 0x7f92bf07a520>

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

CBC

_check_iv_and_key_length(self, algorithm)
initialization_vector = <property object at 0x7f92bf089630>
name = 'CBC'

CFB

_check_iv_and_key_length(self, algorithm)
initialization_vector = <property object at 0x7f92bf089950>
name = 'CFB'

CFB8

_check_iv_and_key_length(self, algorithm)
initialization_vector = <property object at 0x7f92bf089a40>
name = 'CFB8'

CTR

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

CipherAlgorithm

key_size = <abc.abstractproperty object at 0x7f92bf07a4c0>

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

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

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

ECB

_check_aes_key_length(self, algorithm)
name = 'ECB'

GCM

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

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 0x7f92bf086340>

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

ModeWithAuthenticationTag

tag = <abc.abstractproperty object at 0x7f92bf0864c0>

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

ModeWithInitializationVector

initialization_vector = <abc.abstractproperty object at 0x7f92bf0863a0>

          The value of the initialization vector for this mode as bytes.
        

ModeWithNonce

nonce = <abc.abstractproperty object at 0x7f92bf086460>

          The value of the nonce for this mode as bytes.
        

ModeWithTweak

tweak = <abc.abstractproperty object at 0x7f92bf086400>

          The value of the tweak for this mode as bytes.
        

OFB

_check_iv_and_key_length(self, algorithm)
initialization_vector = <property object at 0x7f92bf089860>
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 0x7f92bf089720>

Modules

abc

typing

utils