pub struct PqdsaVerificationAlgorithm {
pub(crate) id: &'static AlgorithmID,
}Expand description
A PQDSA verification algorithm.
Fields§
§id: &'static AlgorithmIDTrait Implementations§
Source§impl Debug for PqdsaVerificationAlgorithm
impl Debug for PqdsaVerificationAlgorithm
Source§impl ParsedVerificationAlgorithm for PqdsaVerificationAlgorithm
impl ParsedVerificationAlgorithm for PqdsaVerificationAlgorithm
fn parsed_verify_sig( &self, public_key: &ParsedPublicKey, msg: &[u8], signature: &[u8], ) -> Result<(), Unspecified>
fn parsed_verify_digest_sig( &self, _public_key: &ParsedPublicKey, _digest: &Digest, _signature: &[u8], ) -> Result<(), Unspecified>
Source§impl PartialEq for PqdsaVerificationAlgorithm
impl PartialEq for PqdsaVerificationAlgorithm
Source§fn eq(&self, other: &PqdsaVerificationAlgorithm) -> bool
fn eq(&self, other: &PqdsaVerificationAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl VerificationAlgorithm for PqdsaVerificationAlgorithm
impl VerificationAlgorithm for PqdsaVerificationAlgorithm
Source§fn verify_sig(
&self,
public_key: &[u8],
msg: &[u8],
signature: &[u8],
) -> Result<(), Unspecified>
fn verify_sig( &self, public_key: &[u8], msg: &[u8], signature: &[u8], ) -> Result<(), Unspecified>
Verifies the signature for msg using the public_key.
§Errors
error::Unspecified if the signature is invalid.
Source§fn verify_digest_sig(
&self,
_public_key: &[u8],
_digest: &Digest,
_signature: &[u8],
) -> Result<(), Unspecified>
fn verify_digest_sig( &self, _public_key: &[u8], _digest: &Digest, _signature: &[u8], ) -> Result<(), Unspecified>
DO NOT USE. This function is required by VerificationAlgorithm but cannot be used
with ML-DSA: a Digest cannot represent mu, the key-dependent “message
representative” that ML-DSA’s digest-then-verify flow (“external mu”) operates on.
See parsed_verify_digest_sig for details.
§Errors
Always returns Unspecified.
impl Eq for PqdsaVerificationAlgorithm
impl Sealed for PqdsaVerificationAlgorithm
impl StructuralPartialEq for PqdsaVerificationAlgorithm
Auto Trait Implementations§
impl Freeze for PqdsaVerificationAlgorithm
impl RefUnwindSafe for PqdsaVerificationAlgorithm
impl Send for PqdsaVerificationAlgorithm
impl Sync for PqdsaVerificationAlgorithm
impl Unpin for PqdsaVerificationAlgorithm
impl UnsafeUnpin for PqdsaVerificationAlgorithm
impl UnwindSafe for PqdsaVerificationAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more