core/crypto: Add AES mode constants.

pull/362/head
Andrew Kozlik 5 years ago
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…
Cancel
Save