Is there any way to select SHA-256 when using ShaHash? I was not able to get the SHA-256 functions to work correctly - kept giving me key collisions on different sets of data - so I figured I'd use ShaHash (which works perfectly).
Thanks in advance!
You are not logged in. Please login or register.
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
ReferenceswolfSSL - Embedded SSL Library → Posts by n7ekg
Pages 1
Is there any way to select SHA-256 when using ShaHash? I was not able to get the SHA-256 functions to work correctly - kept giving me key collisions on different sets of data - so I figured I'd use ShaHash (which works perfectly).
Thanks in advance!
Got it, thanks! Worked that time
Please let me know when the PR is merged, so I can go back to the master branch Thanks!
I looked at the PR - the code fix looks good, but it looks like it hasn't been merged yet.
Hi n7ekg,
You are having a conflict between the min() function and the local variable called min inside integer.c.
I've submitted a patch for this, since min/max as a local variable name isn't ideal.
PR #747: https://github.com/wolfSSL/wolfssl/pull/747However you could also try defining "WOLFSSSL_HAVE_MIN".
./configure CFLAGS="-DWOLFSSSL_HAVE_MIN"Thanks, David Garske, wolfSSL
No workee
I blew away the wolfssl directory and did a git clone, then ran through autogen.sh, configure, and make:
erc@pahdev1 wolfssl (master)$ ./autogen.sh;./configure CFLAGS="-DWOLFSSSL_HAVE_M
IN";make clean;make
[...]
cc1: warnings being treated as errors
wolfcrypt/src/integer.c: In function 's_mp_add':
wolfcrypt/src/integer.c:1512: error: declaration of 'min' shadows a global declaration
./wolfcrypt/src/misc.c:224: error: shadowed declaration is here
wolfcrypt/src/integer.c: In function 's_mp_sub':
wolfcrypt/src/integer.c:1599: error: declaration of 'min' shadows a global declaration
./wolfcrypt/src/misc.c:224: error: shadowed declaration is here
CC src/src_libwolfssl_la-internal.lo
make[1]: *** [wolfcrypt/src/src_libwolfssl_la-integer.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/local/src/wolfssl'
make: *** [all] Error 2
I also have an issue building WolfSSL from git on Linux:
erc@pahdev1 wolfssl (master)$ make
make -j3 all-am
make[1]: Entering directory `/usr/local/src/wolfssl'
CC wolfcrypt/src/src_libwolfssl_la-integer.lo
CC src/src_libwolfssl_la-internal.lo
CC src/src_libwolfssl_la-io.lo
cc1: warnings being treated as errors
wolfcrypt/src/integer.c: In function 's_mp_add':
wolfcrypt/src/integer.c:1512: error: declaration of 'min' shadows a global declaration
./wolfcrypt/src/misc.c:224: error: shadowed declaration is here
wolfcrypt/src/integer.c: In function 's_mp_sub':
wolfcrypt/src/integer.c:1599: error: declaration of 'min' shadows a global declaration
./wolfcrypt/src/misc.c:224: error: shadowed declaration is here
make[1]: *** [wolfcrypt/src/src_libwolfssl_la-integer.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/usr/local/src/wolfssl'
make: *** [all] Error 2
Pages 1
wolfSSL - Embedded SSL Library → Posts by n7ekg
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.016 seconds (96% PHP - 4% DB) with 4 queries