pub struct PqdsaVerificationAlgorithm { /* private fields */ }Expand description
A PQDSA verification algorithm.
Trait Implementations§
Source§impl Debug for PqdsaVerificationAlgorithm
impl Debug for PqdsaVerificationAlgorithm
impl Eq for PqdsaVerificationAlgorithm
impl StructuralPartialEq for PqdsaVerificationAlgorithm
Source§impl VerificationAlgorithm for PqdsaVerificationAlgorithm
impl VerificationAlgorithm for PqdsaVerificationAlgorithm
Source§fn verify(
&self,
public_key: Input<'_>,
msg: Input<'_>,
signature: Input<'_>,
) -> Result<(), Unspecified>
👎Deprecated: please use VerificationAlgorithm::verify_sig instead
fn verify( &self, public_key: Input<'_>, msg: Input<'_>, signature: Input<'_>, ) -> Result<(), Unspecified>
please use VerificationAlgorithm::verify_sig instead
Verifies the signature of msg using the public key public_key.
§Errors
error::Unspecified if the signature is invalid.
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.
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