pub enum SignerIdentifier {
IssuerAndSerial(IssuerAndSerial),
SubjectKeyIdentifier(Vec<u8>),
}Expand description
SignerIdentifier (RFC 5652 §5.3) — the CHOICE that picks between
IssuerAndSerialNumber (CMS v1) and [0] SubjectKeyIdentifier
(CMS v3). Same shape as the EnvelopedData KTRI’s
super::cms::RecipientId but distinguished by name to keep the
type contracts on each side independent.
Variants§
IssuerAndSerial(IssuerAndSerial)
IssuerAndSerialNumber — CMS SignerInfo v1.
SubjectKeyIdentifier(Vec<u8>)
[0] SubjectKeyIdentifier — CMS SignerInfo v3. The 20-byte
SHA-1 of the signer cert’s SubjectPublicKeyInfo BIT STRING
contents (RFC 5280 §4.2.1.2 method 1).
Trait Implementations§
Source§impl Clone for SignerIdentifier
impl Clone for SignerIdentifier
Source§fn clone(&self) -> SignerIdentifier
fn clone(&self) -> SignerIdentifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignerIdentifier
impl RefUnwindSafe for SignerIdentifier
impl Send for SignerIdentifier
impl Sync for SignerIdentifier
impl Unpin for SignerIdentifier
impl UnsafeUnpin for SignerIdentifier
impl UnwindSafe for SignerIdentifier
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