pub struct SignatureHeader(/* private fields */);
Trait Implementations§
source§impl Clone for SignatureHeader
impl Clone for SignatureHeader
source§fn clone(&self) -> SignatureHeader
fn clone(&self) -> SignatureHeader
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SignatureHeader
impl Debug for SignatureHeader
source§impl Default for SignatureHeader
impl Default for SignatureHeader
source§fn default() -> Self
fn default() -> Self
According to section 3.11.3 in the specification 1, the signature header has the format
0cc1nnnn
where:
cc
signifies the encoding method.01
denotes using the compression encoding method and10
denotes encoding using the uncompressed method.nnnn
encodesLOG_N
.
For RPO Falcon 512 we use compression encoding and N = 512. Moreover, to differentiate the
RPO Falcon variant from the reference variant using SHAKE256, we flip the first bit in the
header. Thus, for RPO Falcon 512 the header is 10111001
source§impl Deserializable for SignatureHeader
impl Deserializable for SignatureHeader
source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source
, attempts to deserialize these bytes
into Self
, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl PartialEq for SignatureHeader
impl PartialEq for SignatureHeader
source§impl Serializable for &SignatureHeader
impl Serializable for &SignatureHeader
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self
into bytes and writes these bytes into the target
.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Eq for SignatureHeader
impl StructuralPartialEq for SignatureHeader
Auto Trait Implementations§
impl Freeze for SignatureHeader
impl RefUnwindSafe for SignatureHeader
impl Send for SignatureHeader
impl Sync for SignatureHeader
impl Unpin for SignatureHeader
impl UnwindSafe for SignatureHeader
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)