mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 12:32:02 +00:00
fixup! feat(core): add Zcash shielded transactions
This commit is contained in:
parent
6d1adddb28
commit
991a6e51cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user