Package Cryptodome :: Package Hash :: Module SHAKE128 :: Class SHAKE128_XOF

Class SHAKE128_XOF

object --+
         |
        SHAKE128_XOF

Class that implements a SHAKE128 XOF
Instance Methods
 
__init__(self, data=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
update(self, data)
Continue hashing of a message by consuming the next chunk of data.
 
read(self, length)
Return the next length bytes of binary (non-printable) digest for the message.
 
new(self, data=None)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  oid = '2.16.840.1.101.3.4.2.11'
ASN.1 Object ID
Properties

Inherited from object: __class__

Method Details

__init__(self, data=None)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

update(self, data)

 

Continue hashing of a message by consuming the next chunk of data.

Repeated calls are equivalent to a single call with the concatenation of all the arguments. In other words:

>>> m.update(a); m.update(b)

is equivalent to:

>>> m.update(a+b)

You cannot use update anymore after the first call to read.

Parameters:
  • data (byte string) - The next chunk of the message being hashed.

read(self, length)

 

Return the next length bytes of binary (non-printable) digest for the message.

You cannot use update anymore after the first call to read.

Returns:
A byte string of length bytes.