1 (edited by nmehta 2021-03-23 08:48:09)

Topic: Build Wolfssl 4.7 and JNI 1.1.0 - 2 tests failing in AesFipsTest

Hello,

We are using WolfSSL 4.7.0 package with JNI 1.1.0. We are interested in the WolfSSL library along with JNI wrapper.

All the libraries and Jar files are generated correctly as per build instruction.
libwolfssl.so.24.4.0
libwolfcryptjni.so
wolfcrypt-jni.jar

However when running the Fips testsuite - 2 tests are failing.

//---------------
$+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib $JAVA_HOME/bin/java -ea -cp lib/wolfcrypt-jni.jar:junit/junit-4.13.jar:junit/hamcrest-all-1.3.jar:build/test/ org.junit.runner.JUnitCore com.wolfssl.wolfcrypt.test.fips.WolfCryptFipsTestSuite
JUnit version 4.13
. .....{ skip this part intentionally }
...........E.E.......................................
Time: 0.074
There were 2 failures:
1) gcmEncrypShouldMatchUsingByteArray(com.wolfssl.wolfcrypt.test.fips.AesFipsTest)
java.lang.AssertionError: expected:<0> but was:<-173>
    at org.junit.Assert.fail(Assert.java:89)
    at org.junit.Assert.failNotEquals(Assert.java:835)
    at org.junit.Assert.assertEquals(Assert.java:647)
    at org.junit.Assert.assertEquals(Assert.java:633)
    at com.wolfssl.wolfcrypt.test.fips.AesFipsTest.gcmEncrypShouldMatchUsingByteArray(AesFipsTest.java:613)
2) gcmEncrypShouldMatchUsingByteByffer(com.wolfssl.wolfcrypt.test.fips.AesFipsTest)
java.lang.AssertionError: expected:<0> but was:<-173>
    at org.junit.Assert.fail(Assert.java:89)
    at org.junit.Assert.failNotEquals(Assert.java:835)
    at org.junit.Assert.assertEquals(Assert.java:647)
    at org.junit.Assert.assertEquals(Assert.java:633)
    at com.wolfssl.wolfcrypt.test.fips.AesFipsTest.gcmEncrypShouldMatchUsingByteByffer(AesFipsTest.java:478)

FAILURES!!!
Tests run: 52,  Failures: 2

Share

Re: Build Wolfssl 4.7 and JNI 1.1.0 - 2 tests failing in AesFipsTest

Hello nmehta,

In order to give you the highest priority for your FIPS question, could you please send an email to support@wolfssl.com ?

Kind regards,
Eric @wolfSSL Support