MicroPython/ucryptolib.py

Sun, 25 Aug 2019 19:25:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Aug 2019 19:25:37 +0200
changeset 2
2c3f30af031d
permissions
-rw-r--r--

Started to add the stubs for MicroPython.

# -*- coding: utf-8 -*-

# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module containing stubs for API generation of the def 'ucryptolib' module.
"""

MODE_ECB = 1
MODE_CBC = 2
MODE_CTR = 6

class aes():
    def __init__(self, key, mode, IV=None):
        pass
    
    def encrypt(self, in_buf, out_buf=None):
        pass
    
    def decrypt(self, in_buf, out_buf=None):
        pass

eric ide

mercurial