pub struct PublicKey65(/* private fields */);Expand description
An ML-DSA-65 public key.
Implementations§
Source§impl PublicKey65
impl PublicKey65
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: Prehash65,
signature: &[u8],
) -> Result<(), InvalidSignatureError>
pub fn verify_prehashed( &self, prehash: Prehash65, signature: &[u8], ) -> Result<(), InvalidSignatureError>
Verify pre-hashed data.
Auto Trait Implementations§
impl Freeze for PublicKey65
impl RefUnwindSafe for PublicKey65
impl Send for PublicKey65
impl Sync for PublicKey65
impl Unpin for PublicKey65
impl UnsafeUnpin for PublicKey65
impl UnwindSafe for PublicKey65
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