Enum ethers::core::k256::elliptic_curve::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
V1
Denotes PKCS#8 v1: no public key field.
V2
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
.
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
?
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more