Package Cryptodome :: Package Hash :: Module SHA3_224

Module SHA3_224

SHA-3/224 cryptographic hash algorithm.

SHA-3/224 belongs to the SHA-3 family of cryptographic hashes, as specified in FIPS 202.

The hash function produces the 224 bit digest of a message.

>>> from Cryptodome.Hash import SHA3_224
>>>
>>> h_obj = SHA3_224.new()
>>> h_obj.update(b'Some data')
>>> print h_obj.hexdigest()
Classes
  SHA3_224_Hash
Class that implements a SHA-3/224 hash
Functions
 
new(*args, **kwargs)
Return a fresh instance of the hash object.
Variables
  digest_size = 28
The size of the resulting hash in bytes.
  __package__ = 'Cryptodome.Hash'
Function Details

new(*args, **kwargs)

 
Return a fresh instance of the hash object.
Parameters:
  • data (byte string) - Optional. The very first chunk of the message to hash. It is equivalent to an early call to update().
  • update_after_digest (boolean) - Optional. By default, a hash object cannot be updated anymore after the digest is computed. When this flag is True, such check is no longer enforced.
Returns:
A SHA3_224_Hash object