From 121d1a0297d5ec9439d477fe1789c434ea88be5a Mon Sep 17 00:00:00 2001 From: Joseph Birr-Pixton Date: Fri, 2 Feb 2024 11:45:08 +0000 Subject: [PATCH] Allow `SignatureVerificationAlgorithm` to state FIPS status --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c42f39f..0bab9a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -387,6 +387,11 @@ pub trait SignatureVerificationAlgorithm: Send + Sync + fmt::Debug { /// on the data to be verified for this `SignatureVerificationAlgorithm` to be used /// for signature verification. fn signature_alg_id(&self) -> AlgorithmIdentifier; + + /// Return `true` if this is backed by a FIPS-approved implementation. + fn fips(&self) -> bool { + false + } } /// A detail-less error when a signature is not valid.