API
- class sha3bit.sha3_224(m=None, *, bitlen=None, verbose=False)
- digest()
Return the digest of the bytes passed to the update() method so far as a bytes object.
- export_state()
Export current state to a dict
- hexdigest()
Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.
- classmethod import_state(state)
Initialize an instance from an exported state
- update(m, *, bitlen=None)
Update the hash object with the bytes in m. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- class sha3bit.sha3_256(m=None, *, bitlen=None, verbose=False)
- digest()
Return the digest of the bytes passed to the update() method so far as a bytes object.
- export_state()
Export current state to a dict
- hexdigest()
Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.
- classmethod import_state(state)
Initialize an instance from an exported state
- update(m, *, bitlen=None)
Update the hash object with the bytes in m. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- class sha3bit.sha3_384(m=None, *, bitlen=None, verbose=False)
- digest()
Return the digest of the bytes passed to the update() method so far as a bytes object.
- export_state()
Export current state to a dict
- hexdigest()
Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.
- classmethod import_state(state)
Initialize an instance from an exported state
- update(m, *, bitlen=None)
Update the hash object with the bytes in m. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- class sha3bit.sha3_512(m=None, *, bitlen=None, verbose=False)
- digest()
Return the digest of the bytes passed to the update() method so far as a bytes object.
- export_state()
Export current state to a dict
- hexdigest()
Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.
- classmethod import_state(state)
Initialize an instance from an exported state
- update(m, *, bitlen=None)
Update the hash object with the bytes in m. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- class sha3bit.shake_128(m=None, *, bitlen=None, verbose=False)
- digest(length)
Return the digest of the bytes passed to the update() method so far as a bytes object.
- export_state()
Export current state to a dict
- hexdigest(length)
Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.
- hexsqueez(length)
Like squeez() except the bytes are returned as a string of double length, containing only hexadecimal digits.
- classmethod import_state(state)
Initialize an instance from an exported state
- squeez(length)
Squeez the sponge. Unlike digest(), consecutive calls do not return same values.
- update(m, *, bitlen=None)
Update the hash object with the bytes in m. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- class sha3bit.shake_256(m=None, *, bitlen=None, verbose=False)
- digest(length)
Return the digest of the bytes passed to the update() method so far as a bytes object.
- export_state()
Export current state to a dict
- hexdigest(length)
Like digest() except the digest is returned as a string of double length, containing only hexadecimal digits.
- hexsqueez(length)
Like squeez() except the bytes are returned as a string of double length, containing only hexadecimal digits.
- classmethod import_state(state)
Initialize an instance from an exported state
- squeez(length)
Squeez the sponge. Unlike digest(), consecutive calls do not return same values.
- update(m, *, bitlen=None)
Update the hash object with the bytes in m. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- class sha3bit.Keccak(capacity, suffix, *, verbose=False)
- absorb(data, bitlen=None)
Update the sponge object with the bytes in data. Repeated calls are equivalent to a single call with the concatenation of all the arguments.
- export_state()
Export current state to a dict
- static f1600(lanes, *, verbose=False)
SHA3 f function. lanes must be a list of 5 list of 5 int.
- Return type:
None
- static import_state(state)
Initialize an instance from an exported state
- squeez(bytelen)
Squeez the sponge.