1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-04 12:56:25 +00:00
trezor-firmware/src/trezor/crypto
Pavol Rusnak ebf912c8f1
src/trezor/crypto: introduce SecureContext
usage:

from trezor.crypto import SecureContext

with SecureContext() as sc:
    sc.var1 = ...
    sc.var2 = ...

SecureContext will call destructors of all variables assigned
to sc in the block. It will also call gc.collect()
2018-08-06 17:05:58 +02:00
..
__init__.py src/trezor/crypto: introduce SecureContext 2018-08-06 17:05:58 +02:00
aes.py src: run black 2018-07-10 13:05:15 +02:00
base32.py src: run black 2018-07-10 13:05:15 +02:00
base58.py ripple: get address 2018-07-30 16:37:48 +02:00
bech32.py src: run black 2018-07-10 13:05:15 +02:00
cashaddr.py src: run black 2018-07-10 13:05:15 +02:00
curve.py src+tests: use flake8 F401 to detect unused imports 2018-02-27 03:05:15 +01:00
der.py src: run black 2018-07-10 13:05:15 +02:00
hashlib.py src: run isort 2018-07-10 13:05:15 +02:00
hmac.py src: run black 2018-07-10 13:05:15 +02:00
rlp.py src: run black 2018-07-10 13:05:15 +02:00