0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 19:42:19 +02:00
Home to the Signal Protocol as well as other cryptographic primitives which make Signal possible.
Go to file
Jordan Rose 77a5451c1f Add flake8 for checking our Python scripts
We only have one for now, but we can start enforcing this now.
2020-11-30 11:02:57 -08:00
.github/workflows Add flake8 for checking our Python scripts 2020-11-30 11:02:57 -08:00
bin Change rustup fallback search to just look in ~/.cargo 2020-11-19 10:26:15 -08:00
java Bump Java version number to 0.1.4 2020-11-24 10:17:06 -08:00
node Fix quoting in Swift and Node build scripts 2020-11-16 11:02:39 -08:00
rust Add flake8 for checking our Python scripts 2020-11-30 11:02:57 -08:00
swift Swift: expose SessionRecord.archiveCurrentState() 2020-11-18 15:47:52 -08:00
.clippy.toml Fix clippy warnings 2020-07-30 13:49:20 -04:00
.dockerignore Move makefile and docker file into java subdir 2020-11-06 16:40:54 -05:00
.flake8 Add flake8 for checking our Python scripts 2020-11-30 11:02:57 -08:00
.gitignore node: Support for electron-rebuild 2020-11-11 11:06:05 -08:00
.nvmrc Add a Yarn-based Node package for signal-client 2020-11-10 11:00:54 -08:00
.prettierignore Add a Yarn-based Node package for signal-client 2020-11-10 11:00:54 -08:00
.prettierrc.js Switch ESLint configuration to more closely match Signal-Desktop 2020-11-11 11:06:05 -08:00
.rustfmt.license-template Switch to AGPL 3.0 2020-11-02 17:53:10 -05:00
.rustfmt.toml Switch to AGPL 3.0 2020-11-02 17:53:10 -05:00
binding.gyp Move wrapper-specific shell scripts into subfolders 2020-11-11 11:15:25 -08:00
Cargo.lock Update Cargo.lock 2020-11-12 11:10:55 -05:00
Cargo.toml Rust: don't build any bridge/* crates by default 2020-11-12 10:30:07 -08:00
LICENSE Switch to AGPL 3.0 2020-11-02 17:53:10 -05:00
package.json Mark the package as private so it doesn't get published to NPM 2020-11-11 11:06:05 -08:00
README.md Updates, and refer Swift to the swift subdir README 2020-11-12 17:32:02 -05:00
rust-toolchain Pin nightly to a specific date 2020-11-09 15:39:29 -05:00
SignalClient.podspec Fix quoting in Swift and Node build scripts 2020-11-16 11:02:39 -08:00
yarn.lock Switch ESLint configuration to more closely match Signal-Desktop 2020-11-11 11:06:05 -08:00

Overview

libsignal-client is an implementation of the Signal client in Rust.

Work in progress. Subject to change without notice, use outside Signal not yet recommended.

Building

To build anything in this repository you must have Rust installed. The build currently uses a specific version of the Rust nightly compiler, which will be downloaded automatically by cargo. To build and test the basic protocol libraries:

$ cargo build
...
$ cargo test
...

Java/Android

To build for Android you must install several additional packages including a JDK, the Android NDK/SDK, and add the Android targets to the Rust compiler, using

rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android

To build the Java/Android jar and aar, and run the tests:

$ cd java
$ ./gradlew test

Alternately, a build system using Docker is available:

$ cd java
$ make java_test

Swift

To learn about the Swift build process see swift/README.md

Legal things

Cryptography Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

License

Copyright 2020 Signal Messenger, LLC

Licensed under the AGPLv3: https://www.gnu.org/licenses/agpl-3.0.html