[−][src]Enum sequoia_openpgp::packet::signature::subpacket::SubpacketValue
Struct holding an arbitrary subpacket.
The value is well structured. See SubpacketTag
for a
description of these tags.
Note: This enum cannot be exhaustively matched to allow future extensions.
Variants
An unknown subpacket.
Fields of Unknown
tag: SubpacketTag
The unknown subpacket's tag.
body: Vec<u8>
The unknown subpacket's uninterpreted body.
SignatureCreationTime(Timestamp)
4-octet time field
SignatureExpirationTime(Duration)
4-octet time field
ExportableCertification(bool)
1 octet of exportability, 0 for not, 1 for exportable
1 octet "level" (depth), 1 octet of trust amount
Fields of TrustSignature
level: u8
Trust level, or depth.
Level 0 has the same meaning as an ordinary validity signature. Level 1 means that the signed key is asserted to be a valid trusted introducer, with the 2nd octet of the body specifying the degree of trust. Level 2 means that the signed key is asserted to be trusted to issue level 1 trust signatures, i.e., that it is a "meta introducer".
trust: u8
Trust amount.
This is interpreted such that values less than 120 indicate partial trust and values of 120 or greater indicate complete trust. Implementations SHOULD emit values of 60 for partial trust and 120 for complete trust.
A regular expression.
Note: The RFC requires that the serialized form includes a trailing NUL byte. When Sequoia parses the regular expression subpacket, it strips the trailing NUL. (If it doesn't include a NUL, then parsing fails.) Likewise, when it serializes a regular expression subpacket, it unconditionally adds a NUL.
Revocable(bool)
1 octet of revocability, 0 for not, 1 for revocable
KeyExpirationTime(Duration)
4-octet time field.
PreferredSymmetricAlgorithms(Vec<SymmetricAlgorithm>)
Array of one-octet values
RevocationKey(RevocationKey)
1 octet of class, 1 octet of public-key algorithm ID, 20 octets of fingerprint
Issuer(KeyID)
8-octet Key ID
NotationData(NotationData)
The notation has a name and a value, each of which are strings of octets..
PreferredHashAlgorithms(Vec<HashAlgorithm>)
Array of one-octet values
PreferredCompressionAlgorithms(Vec<CompressionAlgorithm>)
Array of one-octet values
KeyServerPreferences(KeyServerPreferences)
N octets of flags
String (URL)
PrimaryUserID(bool)
1 octet, Boolean
String (URL)
KeyFlags(KeyFlags)
N octets of flags
String
1 octet of revocation code, N octets of reason string
Fields of ReasonForRevocation
code: ReasonForRevocation
Machine-readable reason for revocation.
reason: Vec<u8>
Human-readable reason for revocation.
Features(Features)
N octets of flags
1-octet public-key algorithm, 1 octet hash algorithm, N octets hash
Fields of SignatureTarget
pk_algo: PublicKeyAlgorithm
Public-key algorithm of the target signature.
hash_algo: HashAlgorithm
Hash algorithm of the target signature.
digest: Vec<u8>
Hash digest of the target signature.
EmbeddedSignature(Signature)
An embedded signature.
IssuerFingerprint(Fingerprint)
20-octet V4 fingerprint.
PreferredAEADAlgorithms(Vec<AEADAlgorithm>)
Preferred AEAD Algorithms.
IntendedRecipient(Fingerprint)
Intended Recipient Fingerprint [proposed].
Implementations
impl SubpacketValue
[src]
pub fn tag(&self) -> SubpacketTag
[src]
Returns the subpacket tag for this value.
Trait Implementations
impl Arbitrary for SubpacketValue
[src]
fn arbitrary<G: Gen>(g: &mut G) -> Self
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>
[src]
impl Clone for SubpacketValue
[src]
fn clone(&self) -> SubpacketValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SubpacketValue
[src]
impl Eq for SubpacketValue
[src]
impl Hash for SubpacketValue
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Marshal for SubpacketValue
[src]
fn serialize(&self, o: &mut dyn Write) -> Result<()>
[src]
fn export(&self, o: &mut dyn Write) -> Result<()>
[src]
impl MarshalInto for SubpacketValue
[src]
fn serialized_len(&self) -> usize
[src]
fn serialize_into(&self, buf: &mut [u8]) -> Result<usize>
[src]
fn to_vec(&self) -> Result<Vec<u8>>
[src]
fn export_into(&self, buf: &mut [u8]) -> Result<usize>
[src]
fn export_to_vec(&self) -> Result<Vec<u8>>
[src]
impl PartialEq<SubpacketValue> for SubpacketValue
[src]
fn eq(&self, other: &SubpacketValue) -> bool
[src]
fn ne(&self, other: &SubpacketValue) -> bool
[src]
impl StructuralEq for SubpacketValue
[src]
impl StructuralPartialEq for SubpacketValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for SubpacketValue
impl Send for SubpacketValue
impl Sync for SubpacketValue
impl Unpin for SubpacketValue
impl UnwindSafe for SubpacketValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,