diff -r afcd3f0662b1 -r 2c3f30af031d MicroPython/ucryptolib.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MicroPython/ucryptolib.py Sun Aug 25 19:25:37 2019 +0200 @@ -0,0 +1,22 @@ +# -*- 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