Site
Gitweb
Static
projects
/
eros.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
966b213
)
Fix typos
author
Jakob Cornell
<jakob+gpg@jcornell.net>
Fri, 5 Nov 2021 06:09:22 +0000
(
01:09
-0500)
committer
Jakob Cornell
<jakob+gpg@jcornell.net>
Fri, 5 Nov 2021 06:09:22 +0000
(
01:09
-0500)
src/disk_jumble/nettle.py
patch
|
blob
|
history
diff --git
a/src/disk_jumble/nettle.py
b/src/disk_jumble/nettle.py
index cd73b1a7754b639a98c287ee3cc7fe5bd72d2b84..d211abafc583840e0647aaba253e41aa81c87ffa 100644
(file)
--- 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_u
ni
t64),
+ ("count", ctypes.c_u
in
t64),
("index", ctypes.c_uint),
("block", _Sha1Defs._BlockArr),
]