diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-02-22 11:42:05 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-02-22 11:42:05 +0100 |
commit | 623821a3b582b563029395dd051285caab3402db (patch) | |
tree | 4dc98fa70a0ecbbe5e4b20ecb118ba59062892cb | |
parent | 9a42893ddfcf6c867ed1d96202e57b14a1deae05 (diff) |
openpgp: Update NEWS, fix documentation.
- Add missing NEWS entry, drop documentation comments from trait
implementation.
- Fixes de8fab8d1b74fa87d3c20d7a2b9e49aea929e6ea.
-rw-r--r-- | openpgp/NEWS | 3 | ||||
-rw-r--r-- | openpgp/src/crypto/asymmetric.rs | 18 |
2 files changed, 3 insertions, 18 deletions
diff --git a/openpgp/NEWS b/openpgp/NEWS index cfb8261f..22b822d9 100644 --- a/openpgp/NEWS +++ b/openpgp/NEWS @@ -2,6 +2,9 @@ #+TITLE: sequoia-openpgp NEWS – history of user-visible changes #+STARTUP: content hidestars +* Changes in 1.8.0 +** New functionality + - crypto::Signer::acceptable_hashes * Changes in 1.7.0 ** Notable fixes - sequoia-openpgp can now be compiled to WASM. diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs index d6c8f234..8f401a17 100644 --- a/openpgp/src/crypto/asymmetric.rs +++ b/openpgp/src/crypto/asymmetric.rs @@ -62,15 +62,6 @@ impl Signer for Box<dyn Signer> { self.as_ref().public() } - /// Returns a list of hashes that this signer accepts. - /// - /// Some cryptographic libraries or hardware modules support signing digests - /// produced with only a limited set of hashing algorithms. This function - /// indicates to callers which algorithm digests are supported by this signer. - /// - /// The default implementation of this function allows all hash algorithms to - /// be used. Provide an explicit implementation only when a smaller subset - /// of hashing algorithms is valid for this `Signer` implementation. fn acceptable_hashes(&self) -> &[HashAlgorithm] { self.as_ref().acceptable_hashes() } @@ -86,15 +77,6 @@ impl Signer for Box<dyn Signer + Send + Sync> { self.as_ref().public() } - /// Returns a list of hashes that this signer accepts. - /// - /// Some cryptographic libraries or hardware modules support signing digests - /// produced with only a limited set of hashing algorithms. This function - /// indicates to callers which algorithm digests are supported by this signer. - /// - /// The default implementation of this function allows all hash algorithms to - /// be used. Provide an explicit implementation only when a smaller subset - /// of hashing algorithms is valid for this `Signer` implementation. fn acceptable_hashes(&self) -> &[HashAlgorithm] { self.as_ref().acceptable_hashes() } |