From 4865e156d34a3e5604e1e2dbb42468151e30725a Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 23 Jan 2024 10:57:32 +0100 Subject: openpgp: Fix the documentation for Key4::import_public_ed25519. - Ed25519 keys use the EdDSA signature algorithm, but the documentation mentions parameters for ECDH. - It appears that the documentation was copied from `Key4::import_public_cv25519`, and not adjusted. - Fix it. --- openpgp/src/packet/key.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'openpgp') diff --git a/openpgp/src/packet/key.rs b/openpgp/src/packet/key.rs index a7ea5dc1..118428fe 100644 --- a/openpgp/src/packet/key.rs +++ b/openpgp/src/packet/key.rs @@ -1074,10 +1074,8 @@ impl Key4 /// Creates an OpenPGP public key packet from existing Ed25519 key /// material. /// - /// The ECDH key will use hash algorithm `hash` and symmetric - /// algorithm `sym`. If one or both are `None` secure defaults - /// will be used. The key will have its creation date set to - /// `ctime` or the current time if `None` is given. + /// The key will have its creation date set to `ctime` or the + /// current time if `None` is given. pub fn import_public_ed25519(public_key: &[u8], ctime: T) -> Result where T: Into> { -- cgit v1.2.3