Enum pkcs8::Version [−][src]
pub enum Version { V1, V2, }
Expand description
Version identifier for PKCS#8 documents.
(RFC 5958 designates 0
and 1
as the only valid versions for PKCS#8 documents)
Variants
Denotes PKCS#8 v1: no public key field.
Denotes PKCS#8 v2: OneAsymmetricKey
with public key field.
Implementations
Is this version expected to have a public key?
Trait Implementations
Compute the length of this value in bytes when encoded as ASN.1 DER.
Encode this value as ASN.1 DER using the provided Encoder
.
Encode this value to the provided byte slice, returning a sub-slice containing the encoded message. Read more
Encode this message as ASN.1 DER, appending it to the provided byte vector. Read more
Auto Trait Implementations
impl RefUnwindSafe for Version
impl UnwindSafe for Version
Blanket Implementations
Mutably borrows from an owned value. Read more
Is the provided Tag
decodable as a variant of this CHOICE
?
type Output = T
type Output = T
Should always be Self