On 2019年04月10日 13:02, Niels Möller wrote:
"Yu, Mingli" <mingli...@windriver.com> writes:
# echo -n passwd| nettle-pbkdf2 -i 1 -l 16
[65534.886509] nettle-pbkdf2[708]: segfault at 1f594260 ip
00007f3332256998 sp 00007fff60d44410 error 4 in
libnettle.so.6.5[7f3332244000+1d00]
[65534.887525] Code: e8 6d db fe ff 44 01 6d 68 48 83 c4 08 5b 5d 41
5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 dc e9 68
ff f
Segmentation fault
I can't reproduce this crash. Gives me a usage message, and if I add a
salt argument, I get a hex digest out, as expected. Which version and
platform are you using?
It's 3.4.1 and I did use it as below:
# echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
Can you get a backtrace? (start "gdb nettle-pbkdf2", at the gdb prompt
I don't know how to use nettle-pbkdf2 actually and it didn't return when
I run as below:
# nettle-pbkdf2 -i 1 -l 16 salt
But instead, it can return at once as below with Segmentation fault, but
not succeeded to use gdb to run with below command:
# echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
type "run -i 1 -l 16", if it crashes, type "bt" for backtrace).
Regards,
/Niels
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs