From 6c406867c333b80e02a853582cbcc0cc2205489e Mon Sep 17 00:00:00 2001 From: Hannes <55623006+umgefahren@users.noreply.github.com> Date: Wed, 23 Mar 2022 17:00:52 +0100 Subject: [PATCH] Added warning for using P-256 --- README.md | 9 ++++----- src/lib.rs | 2 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 547826a..0e9e973 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ Implementation of the double ratchet system/encryption as specified by [Signal][1]. +**WARNING! This implementation uses P-256 NOT Curve25519 as specified by Signal!** + The implementation follows the cryptographic recommendations provided by [Signal][2]. The AEAD Algorithm uses a constant Nonce. This might be changed in the future. @@ -118,12 +120,9 @@ assert_eq!(im_ratchet, bob_ratchet) ## Features -The crate supports a feature for better performance: ring. If feature is enabled the crate switches +Currently the crate only supports one feature: ring. If feature is enabled the crate switches to ring-compat and uses ring as backend for Sha512 Hashing. May result in slightly better performance. -### WASM - -For WASM support enable the feature `wasm`. TODO: - [x] Standard Double Ratchet @@ -133,6 +132,6 @@ TODO: [2]: https://signal.org/docs/specifications/doubleratchet/#recommended-cryptographic-algorithms [3]: https://signal.org/docs/specifications/doubleratchet/#double-ratchet-with-header-encryption -Current version: 0.3.4 +Current version: 0.4.0 License: MIT diff --git a/src/lib.rs b/src/lib.rs index fcd6390..7d34599 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,7 @@ //! Implementation of the double ratchet system/encryption as specified by [Signal][1]. //! +//! **WARNING! This implementation uses P-256 NOT Curve25519 as specified by Signal!** +//! //! The implementation follows the cryptographic recommendations provided by [Signal][2]. //! The AEAD Algorithm uses a constant Nonce. This might be changed in the future. //!