blob: d92e70fcb79687802f6731f80a4d24b08b802080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from _botan import *
init = LibraryInitializer()
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();
for filter in filters:
if filter:
pipe.append(filter)
return pipe
#def Filter(name, key):
# return make_filter(name, key)
|