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!

2

(12 replies, posted in wolfSSL)

Got it, thanks! Worked that time smile

Please let me know when the PR is merged, so I can go back to the master branch smile  Thanks!

3

(12 replies, posted in wolfSSL)

I looked at the PR - the code fix looks good, but it looks like it hasn't been merged yet.

4

(12 replies, posted in wolfSSL)

dgarske wrote:

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/747

However you could also try defining "WOLFSSSL_HAVE_MIN".
./configure CFLAGS="-DWOLFSSSL_HAVE_MIN"

Thanks, David Garske, wolfSSL

No workee sad

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

5

(12 replies, posted in wolfSSL)

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