diff options
Diffstat (limited to 'misc/python/botan/__init__.py')
-rw-r--r-- | misc/python/botan/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/misc/python/botan/__init__.py b/misc/python/botan/__init__.py index 781426921..d92e70fcb 100644 --- a/misc/python/botan/__init__.py +++ b/misc/python/botan/__init__.py @@ -2,8 +2,13 @@ from _botan import * init = LibraryInitializer() -def Filter(name): - return make_filter(name) +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) + else: + return make_filter(name) def Pipe(*filters): pipe = PipeObj(); |