mirror of https://github.com/nucypher/nucypher.git
importmodule bugfix
parent
55dbfdd8e0
commit
a7e2f70ddb
|
@ -17,7 +17,8 @@ default_algorithm = dict(
|
|||
|
||||
|
||||
def symmetric_from_algorithm(algorithm):
|
||||
module = importlib('nkms.crypto.block.' + algorithm['symmetric']['cipher'])
|
||||
module = importlib.import_module(
|
||||
'nkms.crypto.block.' + algorithm['symmetric']['cipher'])
|
||||
# TODO need to cache this
|
||||
return module.Cipher
|
||||
|
||||
|
|
Loading…
Reference in New Issue