From 623821a3b582b563029395dd051285caab3402db Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 22 Feb 2022 11:42:05 +0100 Subject: openpgp: Update NEWS, fix documentation. - Add missing NEWS entry, drop documentation comments from trait implementation. - Fixes de8fab8d1b74fa87d3c20d7a2b9e49aea929e6ea. --- openpgp/NEWS | 3 +++ 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 { 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 { 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() } -- cgit v1.2.3