Back to module index

Go to module by name

cryptography.hazmat.primitives

cryptography.hazmat

cryptography

cryptography.hazmat.primitives.hashes

This module has no docstring.

Classes

AlreadyFinalized

with_traceback(...)

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

BLAKE2b

block_size = 128
digest_size = <property object at 0x7f92bf114130>
name = 'blake2b'

BLAKE2s

block_size = 64
digest_size = <property object at 0x7f92bf1141d0>
name = 'blake2s'

ExtendableOutputFunction


    An interface for extendable output functions.
    

Hash

copy(self) -> 'Hash'
finalize(self) -> bytes
update(self, data: bytes) -> None
algorithm = <property object at 0x7f92bf108a90>

HashAlgorithm

block_size = <abc.abstractproperty object at 0x7f92bf0fce80>

          The internal block size of the hash function, or None if the hash
          function does not use blocks internally (e.g. SHA3).
        
digest_size = <abc.abstractproperty object at 0x7f92bf0fce20>

          The size of the resulting digest in bytes.
        
name = <abc.abstractproperty object at 0x7f92bf0fcd60>

          A string naming this algorithm (e.g. "sha256", "md5").
        

HashContext

copy(self) -> 'HashContext'


          Return a HashContext that is a copy of the current context.
        
finalize(self) -> bytes


          Finalizes the hash context and returns the hash digest as bytes.
        
update(self, data: bytes) -> None


          Processes the provided bytes through the hash.
        
algorithm = <abc.abstractproperty object at 0x7f92bf0fcee0>

          A HashAlgorithm that will be used by this context.
        

MD5

block_size = 64
digest_size = 16
name = 'md5'

SHA1

block_size = 64
digest_size = 20
name = 'sha1'

SHA224

block_size = 64
digest_size = 28
name = 'sha224'

SHA256

block_size = 64
digest_size = 32
name = 'sha256'

SHA384

block_size = 128
digest_size = 48
name = 'sha384'

SHA3_224

block_size = None
digest_size = 28
name = 'sha3-224'

SHA3_256

block_size = None
digest_size = 32
name = 'sha3-256'

SHA3_384

block_size = None
digest_size = 48
name = 'sha3-384'

SHA3_512

block_size = None
digest_size = 64
name = 'sha3-512'

SHA512

block_size = 128
digest_size = 64
name = 'sha512'

SHA512_224

block_size = 128
digest_size = 28
name = 'sha512-224'

SHA512_256

block_size = 128
digest_size = 32
name = 'sha512-256'

SHAKE128

block_size = None
digest_size = <property object at 0x7f92bf108ea0>
name = 'shake128'

SHAKE256

block_size = None
digest_size = <property object at 0x7f92bf108f90>
name = 'shake256'

SM3

block_size = 64
digest_size = 32
name = 'sm3'

Modules

abc

typing

utils