1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-22 20:42:03 +00:00

fixup! feat(core): add Zcash shielded transactions

This commit is contained in:
Tomas Krnak 2022-11-18 12:10:32 +07:00
parent 6d1adddb28
commit 991a6e51cb

View File

@ -60,7 +60,7 @@ def ff1_aes256_encrypt(key: bytes, tweak: bytes, x: Iterable[int]):
return chain(i2bebsp(u, A), i2bebsp(v, B))
def aes_cbcmac(key, input):
def aes_cbcmac(key: bytes, input: bytes) -> bytes:
cipher = aes(aes.CBC, key, b"\x00" * 16)
mac = cipher.encrypt(input)[-16:]
del cipher