From 991a6e51cb4ac6ea2ce4fe6a4ade3b2cd7417ff0 Mon Sep 17 00:00:00 2001 From: Tomas Krnak Date: Fri, 18 Nov 2022 12:10:32 +0700 Subject: [PATCH] fixup! feat(core): add Zcash shielded transactions --- core/src/apps/zcash/orchard/crypto/ff1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/apps/zcash/orchard/crypto/ff1.py b/core/src/apps/zcash/orchard/crypto/ff1.py index 627ea722d4..629e36ee0d 100644 --- a/core/src/apps/zcash/orchard/crypto/ff1.py +++ b/core/src/apps/zcash/orchard/crypto/ff1.py @@ -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