SHA-224

SHA-224 belongs to the SHA-2_ family of cryptographic hashes. It produces the 224 bit digest of a message.

>>> from Crypto.Hash import SHA224
>>>
>>> h = SHA224.new()
>>> h.update(b'Hello')
>>> print h.hexdigest()

SHA stands for Secure Hash Algorithm.

SHA-224 cryptographic hash algorithm.

SHA-224 belongs to the SHA-2_ family of cryptographic hashes. It produces the 224 bit digest of a message.

>>> from Crypto.Hash import SHA224
>>>
>>> h = SHA224.new()
>>> h.update(b'Hello')
>>> print h.hexdigest()

SHA stands for Secure Hash Algorithm.

class Crypto.Hash.SHA224.SHA224Hash(data=None)

Class that implements a SHA-224 hash

Undocumented:

block_size

new(data=None)

Return a fresh instance of the hash object.

Unlike the copy method, the internal state of the object is empty.

Parameters:
databyte string

The next chunk of the message being hashed.

Return:

A hash object of the same type

oid = b'\x06\t`\x86H\x01e\x03\x04\x02\x04'

ASN.1 Object identifier (OID):

id-sha224    OBJECT IDENTIFIER ::= {
    joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3)
    nistalgorithm(4) hashalgs(2) 4
}

This value uniquely identifies the SHA-224 algorithm.

Crypto.Hash.SHA224.digest_size = 28

The size of the resulting hash in bytes.

Crypto.Hash.SHA224.new(data=None)

Return a fresh instance of the hash object.

Parameters:
databyte string

The very first chunk of the message to hash. It is equivalent to an early call to SHA224Hash.update(). Optional.

Return:

A SHA224Hash object