pub struct VerifyingKey<P: ParameterSet> { /* private fields */ }
Expand description
A VerifyingKey
is an SLH-DSA public key, allowing
verification of signatures created with the corresponding
SigningKey
Implementations§
Source§impl<P: ParameterSet + VerifyingKeyLen> VerifyingKey<P>
impl<P: ParameterSet + VerifyingKeyLen> VerifyingKey<P>
Sourcepub fn try_verify_with_context(
&self,
msg: &[u8],
ctx: &[u8],
signature: &Signature<P>,
) -> Result<(), Error>
pub fn try_verify_with_context( &self, msg: &[u8], ctx: &[u8], signature: &Signature<P>, ) -> Result<(), Error>
Implements [slh-verify] as defined in FIPS-205, using a context string. Context strings must be 255 bytes or less.
§Errors
Returns an error if the context is too long or if the signature is invalid
Trait Implementations§
Source§impl<P: ParameterSet> AsRef<VerifyingKey<P>> for SigningKey<P>
impl<P: ParameterSet> AsRef<VerifyingKey<P>> for SigningKey<P>
Source§fn as_ref(&self) -> &VerifyingKey<P>
fn as_ref(&self) -> &VerifyingKey<P>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<P: ParameterSet> Clone for VerifyingKey<P>
impl<P: ParameterSet> Clone for VerifyingKey<P>
Source§impl<P: Debug + ParameterSet> Debug for VerifyingKey<P>where
P::N: Debug,
impl<P: Debug + ParameterSet> Debug for VerifyingKey<P>where
P::N: Debug,
Source§impl<P: ParameterSet> From<&VerifyingKey<P>> for Array<u8, P::VkLen>
impl<P: ParameterSet> From<&VerifyingKey<P>> for Array<u8, P::VkLen>
Source§impl<P: ParameterSet> From<Array<u8, <P as VerifyingKeyLen>::VkLen>> for VerifyingKey<P>
impl<P: ParameterSet> From<Array<u8, <P as VerifyingKeyLen>::VkLen>> for VerifyingKey<P>
Source§impl<P: PartialEq + ParameterSet> PartialEq for VerifyingKey<P>where
P::N: PartialEq,
impl<P: PartialEq + ParameterSet> PartialEq for VerifyingKey<P>where
P::N: PartialEq,
Source§impl<P: ParameterSet> TryFrom<&[u8]> for VerifyingKey<P>
impl<P: ParameterSet> TryFrom<&[u8]> for VerifyingKey<P>
Source§impl<P: ParameterSet> Verifier<Signature<P>> for VerifyingKey<P>
impl<P: ParameterSet> Verifier<Signature<P>> for VerifyingKey<P>
impl<P: Eq + ParameterSet> Eq for VerifyingKey<P>where
P::N: Eq,
impl<P: ParameterSet> StructuralPartialEq for VerifyingKey<P>
Auto Trait Implementations§
impl<P> Freeze for VerifyingKey<P>
impl<P> RefUnwindSafe for VerifyingKey<P>
impl<P> Send for VerifyingKey<P>
impl<P> Sync for VerifyingKey<P>
impl<P> Unpin for VerifyingKey<P>
impl<P> UnwindSafe for VerifyingKey<P>
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