summaryrefslogtreecommitdiffstats
path: root/old/botan/wrappers/boost-python/botan/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/wrappers/boost-python/botan/__init__.py')
-rw-r--r--old/botan/wrappers/boost-python/botan/__init__.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/old/botan/wrappers/boost-python/botan/__init__.py b/old/botan/wrappers/boost-python/botan/__init__.py
new file mode 100644
index 0000000..9e136ed
--- /dev/null
+++ b/old/botan/wrappers/boost-python/botan/__init__.py
@@ -0,0 +1,27 @@
+from _botan import *
+
+# Initialize the library when the module is imported
+init = LibraryInitializer()
+
+class SymmetricKey(OctetString):
+ pass
+
+class InitializationVector(OctetString):
+ pass
+
+def Filter(name, key = None, iv = None, dir = None):
+ if key != None and iv != None and dir != None:
+ return make_filter(name, key, iv, dir)
+ elif key != None and dir != None:
+ return make_filter(name, key, dir)
+ elif key != None:
+ return make_filter(name, key)
+ else:
+ return make_filter(name)
+
+def Pipe(*filters):
+ pipe = PipeObj()
+ for filter in filters:
+ if filter:
+ pipe.append(filter)
+ return pipe