MicroPython/uhashlib.py

changeset 2
2c3f30af031d
child 8
f706499906b8
diff -r afcd3f0662b1 -r 2c3f30af031d MicroPython/uhashlib.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MicroPython/uhashlib.py	Sun Aug 25 19:25:37 2019 +0200
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'uhashlib' module.
+"""
+
+class sha1():
+    def __init__(self, data=bytes()):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
+
+class sha256():
+    def __init__(self, data=bytes()):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
+
+class md5():
+    def __init__(self, data=bytes()):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass

eric ide

mercurial