From d30c6e6c901cb0e9b809ebb2c3bf688db9a446da Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Fri, 5 Nov 2021 01:09:22 -0500 Subject: [PATCH] Fix typos --- src/disk_jumble/nettle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/disk_jumble/nettle.py b/src/disk_jumble/nettle.py index cd73b1a..d211aba 100644 --- a/src/disk_jumble/nettle.py +++ b/src/disk_jumble/nettle.py @@ -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), ] -- 2.30.2