mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 01:18:28 +00:00
core/crypto: Add AES mode constants.
This commit is contained in:
parent
9f4f704856
commit
8297b81cd5
@ -36,6 +36,11 @@ enum AESMode {
|
||||
/// """
|
||||
/// AES context.
|
||||
/// """
|
||||
/// ECB: int
|
||||
/// CBC: int
|
||||
/// CFB: int
|
||||
/// OFB: int
|
||||
/// CTR: int
|
||||
typedef struct _mp_obj_AES_t {
|
||||
mp_obj_base_t base;
|
||||
aes_encrypt_ctx encrypt_ctx;
|
||||
|
@ -6,6 +6,11 @@ class aes:
|
||||
"""
|
||||
AES context.
|
||||
"""
|
||||
ECB: int
|
||||
CBC: int
|
||||
CFB: int
|
||||
OFB: int
|
||||
CTR: int
|
||||
|
||||
def __init__(self, mode: int, key: bytes, iv: bytes = None) -> None:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user