pub struct PublicKey87(/* private fields */);Expand description
An ML-DSA-87 public key.
Implementations§
Source§impl PublicKey87
impl PublicKey87
Sourcepub fn verify(
&self,
msg: &[u8],
signature: &[u8],
) -> Result<(), InvalidSignatureError>
pub fn verify( &self, msg: &[u8], signature: &[u8], ) -> Result<(), InvalidSignatureError>
Verifies a signature for a given message using this public key.
Sourcepub fn verify_with_context(
&self,
msg: &[u8],
signature: &[u8],
context: &[u8],
) -> Result<(), InvalidSignatureError>
pub fn verify_with_context( &self, msg: &[u8], signature: &[u8], context: &[u8], ) -> Result<(), InvalidSignatureError>
Verifies a signature for a given message using this public key and the given context.
Sourcepub fn verify_prehashed(
&self,
prehash: Prehash87,
signature: &[u8],
) -> Result<(), InvalidSignatureError>
pub fn verify_prehashed( &self, prehash: Prehash87, signature: &[u8], ) -> Result<(), InvalidSignatureError>
Verify pre-hashed data.
Auto Trait Implementations§
impl Freeze for PublicKey87
impl RefUnwindSafe for PublicKey87
impl Send for PublicKey87
impl Sync for PublicKey87
impl Unpin for PublicKey87
impl UnsafeUnpin for PublicKey87
impl UnwindSafe for PublicKey87
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