Fix tool/kdf_calc.py.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 9 Nov 2018 11:52:15 +0000 (20:52 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 9 Nov 2018 11:52:15 +0000 (20:52 +0900)
ChangeLog
tool/kdf_calc.py

index 6bb650a..dd36574 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-09  NIIBE Yutaka  <gniibe@fsij.org>
+
+       * tool/kdf_calc.py (kdf_calc): Use libgcrypt.so.20.
+
 2018-11-09  NIIBE Yutaka  <gniibe@fsij.org>
 
        * src/openpgp.c (cmd_pso, cmd_internal_authenticate): Use
index aceef6c..cefa0ec 100644 (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: