chiark / gitweb /
core: add "khash" API to src/basic/ (as wrapper around kernel AF_ALG)
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Nov 2016 16:03:21 +0000 (17:03 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
commit90d6a4ed9d3ef81bad45801bfebe7446ee9d08ef
tree889b79278797379b9a97e72e888947e28fe7df0b
parentf034e0b6a2f484db743175a5e4a18e49b6aa5012
core: add "khash" API to src/basic/ (as wrapper around kernel AF_ALG)

Let's take inspiration from bluez's ELL library, and let's move our
cryptographic primitives away from libgcrypt and towards the kernel's AF_ALG
cryptographic userspace API.

In the long run we should try to remove the dependency on libgcrypt, in favour
of using only the kernel's own primitives, however this is unlikely to happen
anytime soon, as the kernel does not provide Elliptic Curve APIs to userspace
at this time, and we need them for the DNSSEC cryptographic.

This commit only covers hashing for now, symmetric encryption/decryption or
even asymetric encryption/decryption is not available for now.

"khash" is little more than a lightweight wrapper around the kernel's AF_ALG
socket API.
src/basic/khash.c [new file with mode: 0644]
src/basic/khash.h [new file with mode: 0644]
src/basic/missing.h
src/test/test-hash.c [new file with mode: 0644]