Package: libscrypt0
Version: 1-2.2
Severity: grave
Tags: upstream
Justification: renders package unusable
Dear Maintainer,
The use case of the -dev library, as documented in the README.txt, is:
#include <stdlib.h>
#include <libscrypt.h>
#include <assert.h>
#define PASSWORD "test"
int main() {
char mcf[SCRYPT_MCF_LEN + 1];
libscrypt_hash(mcf, PASSWORD, SCRYPT_N, SCRYPT_r, SCRYPT_p);
assert(libscrypt_check(mcf, PASSWORD) > 0);
return 0;
}
You compile the program with:
gcc -lm -lscrypt scrypt-test.c -o scrypt-test
and it fails with:
allan@vent:~/src/yaxto$ ./scrypt-test
scrypt-test: scrypt-test.c:10: main: Assertion `libscrypt_check(mcf, "test") >
0' failed.
Aborted
I grabbed the current version from github
(f2b792386b287cc471b1eb030e4ddcbc96be5ad5),
and it works as expected:
allan@vent:~/src/yaxto$ LD_LIBRARY_PATH=~/src/libscrypt ./scrypt-test
allan@vent:~/src/yaxto$
-- System Information:
Debian Release: 8.5
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libscrypt0 depends on:
ii libc6 2.19-18+deb8u4
libscrypt0 recommends no packages.
libscrypt0 suggests no packages.
-- debconf-show failed
--
Allan Wind
Yaxto - Runs My Business
<https://yaxto.com>