Struct sequoia_openpgp::packet::Unknown [−][src]
pub struct Unknown { /* fields omitted */ }
Holds an unknown packet.
This is used by the parser to hold packets that it doesn’t know how to process rather than abort.
This packet effectively holds a binary blob.
A note on equality
Two Unknown
packets are considered equal if their tags and their
bodies are equal.
Implementations
impl Unknown
[src]
impl Unknown
[src]pub fn hash_algo_security(&self) -> HashAlgoSecurity
[src]
pub fn hash_algo_security(&self) -> HashAlgoSecurity
[src]The security requirements of the hash algorithm for self-signatures.
A cryptographic hash algorithm usually has three security properties: pre-image resistance, second pre-image resistance, and collision resistance. If an attacker can influence the signed data, then the hash algorithm needs to have both second pre-image resistance, and collision resistance. If not, second pre-image resistance is sufficient.
In general, an attacker may be able to influence third-party signatures. But direct key signatures, and binding signatures are only over data fully determined by signer. And, an attacker’s control over self signatures over User IDs is limited due to their structure.
These observations can be used to extend the life of a hash algorithm after its collision resistance has been partially compromised, but not completely broken. For more details, please refer to the documentation for HashAlgoSecurity.
impl Unknown
[src]
impl Unknown
[src]This packet implements the unprocessed container interface.
Container packets like this one can contain unprocessed data.
Trait Implementations
impl IntoIterator for Unknown
[src]
impl IntoIterator for Unknown
[src]Implement IntoIterator
so that
cert::insert_packets(sig)
just works.
impl MarshalInto for Unknown
[src]
impl MarshalInto for Unknown
[src]impl Eq for Unknown
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Unknown
impl Send for Unknown
impl Sync for Unknown
impl Unpin for Unknown
impl !UnwindSafe for Unknown
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more