mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-15 00:52:02 +00:00
fixup! fixup! feat(core): add libtropic to unix build
This commit is contained in:
parent
53a2de42c5
commit
d708b6b37c
@ -1,7 +1,7 @@
|
|||||||
from typing import *
|
from typing import *
|
||||||
|
|
||||||
|
|
||||||
# extmod/modtrezorcrypto/modtrezorcrypto-tropic.h
|
# upymod/modtrezorcrypto/modtrezorcrypto-tropic.h
|
||||||
class TropicError(Exception):
|
class TropicError(Exception):
|
||||||
"""Error returned by the Tropic Square chip."""
|
"""Error returned by the Tropic Square chip."""
|
||||||
|
|
||||||
@ -22,13 +22,6 @@ class TropicError(Exception):
|
|||||||
Generate ECC key in the device's ECC key slot.
|
Generate ECC key in the device's ECC key slot.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def random_get(
|
|
||||||
len: int,
|
|
||||||
) -> bytes:
|
|
||||||
"""
|
|
||||||
Get number of random bytes.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def sign(
|
def sign(
|
||||||
key_index: int,
|
key_index: int,
|
||||||
digest: bytes,
|
digest: bytes,
|
||||||
|
Loading…
Reference in New Issue
Block a user