1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-16 12:59:06 +00:00
trezor-firmware/mocks/trezor/crypto/hashlib.py

31 lines
746 B
Python
Raw Normal View History

2016-09-27 14:48:21 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-ripemd160.h
def ripemd160(data: bytes=None) -> Ripemd160:
'''
Creates a hash context object.
'''
2016-10-03 13:47:54 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-sha256.h
def sha256(data: bytes=None) -> Sha256:
2016-09-27 14:48:21 +00:00
'''
Creates a hash context object.
'''
2016-10-03 13:47:54 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-sha3-256.h
def sha3_256(data: bytes=None) -> Sha3_256:
2016-09-27 14:48:21 +00:00
'''
Creates a hash context object.
'''
2016-10-03 13:47:54 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-sha3-512.h
def sha3_512(data: bytes=None) -> Sha3_512:
2016-09-27 14:48:21 +00:00
'''
Creates a hash context object.
'''
2016-10-03 13:47:54 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-sha512.h
def sha512(data: bytes=None) -> Sha512:
2016-09-27 14:48:21 +00:00
'''
Creates a hash context object.
'''