Skip to content

Commit

Permalink
Allow SignatureVerificationAlgorithm to state FIPS status
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Feb 2, 2024
1 parent 53d49b1 commit 121d1a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 121d1a0

Please sign in to comment.