Fix typos
authorJakob Cornell <jakob+gpg@jcornell.net>
Fri, 5 Nov 2021 06:09:22 +0000 (01:09 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Fri, 5 Nov 2021 06:09:22 +0000 (01:09 -0500)
src/disk_jumble/nettle.py

index cd73b1a7754b639a98c287ee3cc7fe5bd72d2b84..d211abafc583840e0647aaba253e41aa81c87ffa 100644 (file)
@@ -1,10 +1,11 @@
 """Python wrappers for some of GnuTLS Nettle."""
 
+from ctypes.util import find_library
 from typing import Optional
 import ctypes
 
 
-_LIB = ctypes.CDLL(ctypes.find_library("nettle"))
+_LIB = ctypes.CDLL(find_library("nettle"))
 
 
 class _Sha1Defs:
@@ -21,7 +22,7 @@ class Sha1Hasher(_Sha1Defs):
        class Context(ctypes.Structure):
                _fields_ = [
                        ("state", _Sha1Defs._StateArr),
-                       ("count", ctypes.c_unit64),
+                       ("count", ctypes.c_uint64),
                        ("index", ctypes.c_uint),
                        ("block", _Sha1Defs._BlockArr),
                ]