2017-04-08 16:43:26 +00:00
|
|
|
|
|
|
|
# extmod/modtrezorcrypto/modtrezorcrypto-blake2b.h
|
|
|
|
def blake2b(data: bytes=None, key: bytes=None) -> Blake2b:
|
2016-11-05 14:26:28 +00:00
|
|
|
'''
|
|
|
|
Creates a hash context object.
|
|
|
|
'''
|
|
|
|
|
2017-06-12 16:02:32 +00:00
|
|
|
# extmod/modtrezorcrypto/modtrezorcrypto-blake2s.h
|
|
|
|
def blake2s(data: bytes=None, key: bytes=None) -> Blake2s:
|
2016-11-05 14:26:28 +00:00
|
|
|
'''
|
|
|
|
Creates a hash context object.
|
|
|
|
'''
|
2016-09-27 14:48:21 +00:00
|
|
|
|
2017-06-12 16:02:32 +00:00
|
|
|
# extmod/modtrezorcrypto/modtrezorcrypto-ripemd160.h
|
|
|
|
def ripemd160(data: bytes=None) -> Ripemd160:
|
2016-09-27 14:48:21 +00:00
|
|
|
'''
|
|
|
|
Creates a hash context object.
|
|
|
|
'''
|
|
|
|
|
2017-06-12 16:02:32 +00:00
|
|
|
# extmod/modtrezorcrypto/modtrezorcrypto-sha1.h
|
|
|
|
def sha1(data: bytes=None) -> Sha1:
|
2016-09-27 14:48:21 +00:00
|
|
|
'''
|
|
|
|
Creates a hash context object.
|
|
|
|
'''
|
|
|
|
|
2017-06-12 16:02:32 +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.
|
|
|
|
'''
|
|
|
|
|
2017-06-12 16:02:32 +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.
|
|
|
|
'''
|
|
|
|
|
2017-06-12 16:02:32 +00:00
|
|
|
# extmod/modtrezorcrypto/modtrezorcrypto-sha3-512.h
|
|
|
|
def sha3_512(data: bytes=None) -> Sha3_512:
|
2017-04-08 16:43:26 +00:00
|
|
|
'''
|
|
|
|
Creates a hash context object.
|
|
|
|
'''
|
|
|
|
|
2017-06-12 16:02:32 +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.
|
|
|
|
'''
|