MicroPython/ucryptolib.py

changeset 2
2c3f30af031d
--- /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

eric ide

mercurial