Fix tool/kdf_calc.py.

This commit is contained in:
NIIBE Yutaka
2018-11-09 20:52:15 +09:00
parent becf8fabc5
commit 3d37003d8c
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ GCRY_MD_SHA256 = 8
def kdf_calc(pw_string, salt_byte, iterations):
ffi = FFI()
ffi.cdef(DEF_gcry_kdf_derive)
libgcrypt = ffi.dlopen("libgcrypt.so")
libgcrypt = ffi.dlopen("libgcrypt.so.20")
if isinstance(pw_string, str):
pw_byte = pw_string.encode('UTF-8')
else: