From c4e6642f01ff45bfa4eea027b31c5418bfebb8b3 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Wed, 10 Aug 2022 13:23:45 +0200 Subject: openpgp: Expose `HashAlgorithm::oid()` on all crypto backends. - Expose `oid()` function for all cryptographic backends. - Fix the description to accurately describe the bytes that are being returned. - Add the reference and note to the common use of this function. - Add practical example of computing the entire `DigestInfo` structure. - Add mention of the change to the NEWS file. - Add test case to check if the values match what Nettle is using. - Fixes #919. --- openpgp/NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openpgp/NEWS') diff --git a/openpgp/NEWS b/openpgp/NEWS index 1a4ec42d..53b443b3 100644 --- a/openpgp/NEWS +++ b/openpgp/NEWS @@ -16,6 +16,8 @@ alternate formatter (e.g. =format!("{:#}", ...)=) - cert::KeyBuilder - cert::SubkeyBuilder + - HashAlgorithm::oid is available on all crypto backends + (previously only on Nettle) ** Deprecated functionality - Error::UnsupportedCert, use Error::UnsupportedCert2 instead - DataFormat::MIME, no replacement, see #863 for details -- cgit v1.2.3