1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 16:00:57 +00:00

core/monero: refactor bulletproof look-up-tables

This commit is contained in:
Pavol Rusnak 2019-09-26 15:20:15 +00:00
parent ede1a0bae3
commit 5f980b50a0
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 1177 additions and 9 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,7 @@
from trezor.crypto import hmac, monero as tcry, random
from trezor.crypto.hashlib import sha3_256
NULL_KEY_ENC = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
NULL_KEY_ENC = b"\x00" * 32
random_bytes = random.bytes
ct_equals = tcry.ct_equals