[noise] Noise for Java

Trevor Perrin trevp at trevp.net
Tue Jun 28 12:28:18 PDT 2016


On Mon, Jun 27, 2016 at 10:26 PM, Rhys Weatherley
<rhys.weatherley at gmail.com> wrote:
>
> https://github.com/rweather/noise-java
>
> All of the usual vector tests are passing - regular handshakes, PSK-using,
> SSK-using, and fallback scenarios.
>
> It took a little longer than I had hoped because I had to write the DJB
> family of cryptographic primitives myself.

Oh wow, looks nice!

More docs on building / testing would help, e.g. how to run the vector tests.

The other tests pass for me, except for CipherStateTests:

java -classpath
/Users/trevp/code/java/junit/hamcrest-core-1.3.jar:/Users/trevp/code/java/junit/junit-4.12.jar:NoiseJava/src:NoiseJavaTests/src
org.junit.runner.JUnitCore
com.southernstorm.noise.tests.CipherStateTests
JUnit version 4.12
..E
Time: 0.26
There was 1 failure:
1) AESGCM(com.southernstorm.noise.tests.CipherStateTests)
java.lang.AssertionError: expected:<16> but was:<-1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at com.southernstorm.noise.tests.CipherStateTests.testCipher(CipherStateTests.java:98)
at com.southernstorm.noise.tests.CipherStateTests.AESGCM(CipherStateTests.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
[...]

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


Trevor


More information about the Noise mailing list