[BREAKGLASS] Append-only mirror of github.com/signalapp/noise-java
Go to file
2022-08-03 12:18:09 -04:00
.github/workflows Build/test with GitHub Actions 2022-08-02 16:13:51 -04:00
src Include test vectors as a local resource 2022-08-02 16:13:44 -04:00
.gitignore Add IntelliJ project files/directories to .gitignore 2022-08-02 16:13:42 -04:00
LICENSE.txt README and LICENSE files 2016-06-28 14:43:54 +10:00
pom.xml Change group ID to org.signal.forks 2022-08-03 12:18:09 -04:00
README.md Change group ID to org.signal.forks 2022-08-03 12:18:09 -04:00

This project is a fork of https://github.com/rweather/noise-java. The goal of this fork is to make Noise-Java available via common artifact repositories like Maven Central. Substantive changes will be offered as pull requests upstream wherever possible.

To avoid namespace collisions, the group identifier in this project's POM has been changed to org.signal.forks, though package names within the artifact have not changed.

The original README continues below.


Noise-Java Library

Noise-Java is a plain Java implementation of the Noise Protocol, intended as a reference implementation. The code is distributed under the terms of the MIT license.

This library is written in plain Java, making use of the Java Cryptography Extension (JCE) to provide cryptographic primitives and infrastructure. When a primitive is not supported by the platform's JDK, Noise-Java provides a fallback implementation in plain Java.

The following algorithms are commonly available in standard JDK's and Noise-Java will try to use them if present:

  • SHA-256
  • SHA-512
  • AES/CTR/NoPadding

Some JDK installations restrict the use of 256-bit AES keys. You may need to install the "Unlimited Strength Policy Files" for your JDK to get around this restriction. Alternatively, the plain Java fallback implementation of AESGCM in Noise-Java does not have any such restrictions.

If you have better implementations of the cryptographic primitives available, you can modify the createDH(), createCipher(), and createHash() functions in the "Noise" class to integrate your versions.

The package documentation contains more information on the classes in the Noise-Java library.

For more information on this library, to report bugs, to contribute, or to suggest improvements, please contact the author Rhys Weatherley via email.