pub struct MlDsaSignature(/* private fields */);Expand description
ML-DSA signature encoded with FIPS 204 Algorithm 26 (sigEncode).
Implementations§
Source§impl MlDsaSignature
impl MlDsaSignature
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, SignError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, SignError>
Decode a final-FIPS-204 signature and enforce canonical hint encoding.
Duplicate or unsorted hint indices, non-monotonic hint boundaries, and nonzero unused hint bytes are rejected here and again during verification.
Trait Implementations§
Source§impl AsMut<[u8]> for MlDsaSignature
impl AsMut<[u8]> for MlDsaSignature
Source§impl AsRef<[u8]> for MlDsaSignature
impl AsRef<[u8]> for MlDsaSignature
Source§impl Clone for MlDsaSignature
impl Clone for MlDsaSignature
Source§fn clone(&self) -> MlDsaSignature
fn clone(&self) -> MlDsaSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MlDsaSignature
impl RefUnwindSafe for MlDsaSignature
impl Send for MlDsaSignature
impl Sync for MlDsaSignature
impl Unpin for MlDsaSignature
impl UnsafeUnpin for MlDsaSignature
impl UnwindSafe for MlDsaSignature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)