From bbe49dac93e2617624ae9a7ed039ad255199fac0 Mon Sep 17 00:00:00 2001 From: Sean Watters Date: Mon, 26 Feb 2024 12:56:41 -0800 Subject: [PATCH] corrects documentation --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/crypto/modes/dh.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 114ee46..7ed4de2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -680,7 +680,7 @@ checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" [[package]] name = "rgp" -version = "0.3.0" +version = "0.3.1" dependencies = [ "blake2", "chacha20", diff --git a/Cargo.toml b/Cargo.toml index bef3a81..1ba2866 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT" name = "rgp" readme = "README.md" repository = "https://github.com/seanwatters/rgp" -version = "0.3.0" +version = "0.3.1" [dependencies] blake2 = "0.10.6" diff --git a/src/crypto/modes/dh.rs b/src/crypto/modes/dh.rs index 57745ac..6d136cc 100644 --- a/src/crypto/modes/dh.rs +++ b/src/crypto/modes/dh.rs @@ -76,7 +76,7 @@ pub const DH_MODE: u8 = 2; /// 4. Encrypt content key for all recipients /// - Generate shared secret with recipient's public key and sender's private key /// - HMAC the shared secret with the provided key -/// - Encrypt content key with shared secret +/// - Encrypt content key with the HMAC result pub const DH_WITH_HMAC_MODE: u8 = 4; /// generates `Dh` pub/priv key pairs.