]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
util: Add crc32 implementation
authorDaniel Wagner <dwagner@suse.de>
Mon, 6 Feb 2023 10:22:49 +0000 (11:22 +0100)
committerDaniel Wagner <dwagner@suse.de>
Mon, 6 Feb 2023 10:30:19 +0000 (11:30 +0100)
commit90f96af953461b32026f5d7db76bb443fee9b25c
treec209c64262633f9730038ebe7c64df11eb96a93f
parentcddc7a1d229a50d29419f50908e05842286bfe66
util: Add crc32 implementation

a05d4213f0f9 ("Add 'gen-dhchap-key' command") introduced the zlib
dependency in order to use the crc32 function. This simple function
alone is a not worth the additional dependency, so let's ship our own
crc32 function.

The implementation is from teh elfutils project which is licensed under
LGPL 3 or later of GPL 2 or later. For this project we choose the GPL 2
or later license.

Link: https://sourceware.org/git/?p=elfutils.git;a=blob;f=lib/crc32.c;hb=575198c29a427392823cc8f2400579a23d06a875
Signed-off-by: Daniel Wagner <dwagner@suse.de>
README.md
meson.build
nvme.c
subprojects/zlib.wrap [deleted file]
util/crc32.c [new file with mode: 0644]
util/crc32.h [new file with mode: 0644]
util/meson.build