pub struct OneAsymmetricKey {
pub version: Version,
pub private_key_algorithm: PrivateKeyAlgorithmIdentifier,
pub private_key: PrivateKey,
pub attributes: Option<Attributes>,
pub public_key: Option<PublicKey>,
}
Expand description
A single asymmetric key.
OneAsymmetricKey ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] Attributes OPTIONAL,
...,
[[2: publicKey [1] PublicKey OPTIONAL ]],
...
}
Fields§
§version: Version
§private_key_algorithm: PrivateKeyAlgorithmIdentifier
§private_key: PrivateKey
§attributes: Option<Attributes>
§public_key: Option<PublicKey>
Implementations§
Source§impl OneAsymmetricKey
impl OneAsymmetricKey
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
Source§impl Clone for OneAsymmetricKey
impl Clone for OneAsymmetricKey
Source§fn clone(&self) -> OneAsymmetricKey
fn clone(&self) -> OneAsymmetricKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OneAsymmetricKey
impl Debug for OneAsymmetricKey
Source§impl PartialEq for OneAsymmetricKey
impl PartialEq for OneAsymmetricKey
impl Eq for OneAsymmetricKey
impl StructuralPartialEq for OneAsymmetricKey
Auto Trait Implementations§
impl !Freeze for OneAsymmetricKey
impl RefUnwindSafe for OneAsymmetricKey
impl Send for OneAsymmetricKey
impl Sync for OneAsymmetricKey
impl Unpin for OneAsymmetricKey
impl UnwindSafe for OneAsymmetricKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)