pub enum ManifestExtEntry {
SpxKey(ManifestExtSpxKey),
SpxSignature(Box<ManifestExtSpxSignature>),
Raw {
header: ManifestExtHeader,
data: Vec<u8>,
},
}
Variants§
Implementations§
Source§impl ManifestExtEntry
impl ManifestExtEntry
Sourcepub fn new_spx_key_entry(key: &SpxPublicKey) -> Result<Self>
pub fn new_spx_key_entry(key: &SpxPublicKey) -> Result<Self>
Creates a new manifest extension from a given SPHINCS+ key
.
Sourcepub fn new_spx_signature_entry(signature: &[u8]) -> Result<Self>
pub fn new_spx_signature_entry(signature: &[u8]) -> Result<Self>
Creates a new manifest extension from a given SPHINCS+ signature
.
Sourcepub fn from_spec(
spec: &ManifestExtEntrySpec,
relative_path: Option<&Path>,
) -> Result<Self>
pub fn from_spec( spec: &ManifestExtEntrySpec, relative_path: Option<&Path>, ) -> Result<Self>
Creates a new manifest extension from a given spec
.
For extensions that reference other resources, such as SPHINCS+ keys or signatures, this function will attempt to load those resources to create the extension.
Sourcepub fn header(&self) -> &ManifestExtHeader
pub fn header(&self) -> &ManifestExtHeader
Returns the header portion of this extension.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManifestExtEntry
impl RefUnwindSafe for ManifestExtEntry
impl Send for ManifestExtEntry
impl Sync for ManifestExtEntry
impl Unpin for ManifestExtEntry
impl UnwindSafe for ManifestExtEntry
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