Fixing some minor issues

This commit is contained in:
fa08c 2015-01-08 11:03:12 +08:00
parent b6efc0efd9
commit 176e97bb45
2 changed files with 2 additions and 2 deletions

View file

@ -83,9 +83,9 @@ def load_cipher(cipher_name):
class CtypesCrypto(object):
def __init__(self, cipher_name, key, iv, op):
self._ctx = None
if not loaded:
load_openssl()
self._ctx = None
cipher = libcrypto.EVP_get_cipherbyname(cipher_name)
if not cipher:
cipher = load_cipher(cipher_name)