pub struct PrivateKeys { /* private fields */ }Expand description
Holds information used to communicate cryptographically with a remote entity.
Includes the entity’s private signing key for making signatures, and the entity’s private encapsulation key used to decrypt messages.
Implementations§
Source§impl PrivateKeys
impl PrivateKeys
Sourcepub fn with_keys(
signing_private_key: SigningPrivateKey,
encapsulation_private_key: EncapsulationPrivateKey,
) -> Self
pub fn with_keys( signing_private_key: SigningPrivateKey, encapsulation_private_key: EncapsulationPrivateKey, ) -> Self
Restores a PrivateKeys from a SigningPrivateKey and an EncapsulationPrivateKey.
Sourcepub fn signing_private_key(&self) -> &SigningPrivateKey
pub fn signing_private_key(&self) -> &SigningPrivateKey
Returns the SigningPrivateKey of this PrivateKeys.
Sourcepub fn enapsulation_private_key(&self) -> &EncapsulationPrivateKey
pub fn enapsulation_private_key(&self) -> &EncapsulationPrivateKey
Returns the EncapsulationPrivateKey of this PrivateKeys.
Trait Implementations§
Source§impl AsRef<EncapsulationPrivateKey> for PrivateKeys
impl AsRef<EncapsulationPrivateKey> for PrivateKeys
Source§fn as_ref(&self) -> &EncapsulationPrivateKey
fn as_ref(&self) -> &EncapsulationPrivateKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PrivateKeys> for PrivateKeys
impl AsRef<PrivateKeys> for PrivateKeys
Source§fn as_ref(&self) -> &PrivateKeys
fn as_ref(&self) -> &PrivateKeys
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<SigningPrivateKey> for PrivateKeys
impl AsRef<SigningPrivateKey> for PrivateKeys
Source§fn as_ref(&self) -> &SigningPrivateKey
fn as_ref(&self) -> &SigningPrivateKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CBORTagged for PrivateKeys
impl CBORTagged for PrivateKeys
The CBOR tags assocated with this type. If more than one tag is present,
they are considered equivalent for reading, but only the first one is
used for writing.
Source§impl CBORTaggedDecodable for PrivateKeys
impl CBORTaggedDecodable for PrivateKeys
Source§fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
Creates an instance of this type by decoding it from untagged CBOR.
Source§fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
Creates an instance of this type by decoding it from tagged CBOR.
Source§impl CBORTaggedEncodable for PrivateKeys
impl CBORTaggedEncodable for PrivateKeys
Source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Returns the untagged CBOR encoding of this instance.
Source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Returns the tagged CBOR encoding of this instance.
Source§impl Clone for PrivateKeys
impl Clone for PrivateKeys
Source§fn clone(&self) -> PrivateKeys
fn clone(&self) -> PrivateKeys
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 PrivateKeys
impl Debug for PrivateKeys
Source§impl Decrypter for PrivateKeys
impl Decrypter for PrivateKeys
fn encapsulation_private_key(&self) -> EncapsulationPrivateKey
Source§impl Display for PrivateKeys
impl Display for PrivateKeys
Source§impl From<PrivateKeys> for CBOR
impl From<PrivateKeys> for CBOR
Source§fn from(value: PrivateKeys) -> Self
fn from(value: PrivateKeys) -> Self
Converts to this type from the input type.
Source§impl Hash for PrivateKeys
impl Hash for PrivateKeys
Source§impl PartialEq for PrivateKeys
impl PartialEq for PrivateKeys
Source§impl PrivateKeysProvider for PrivateKeys
impl PrivateKeysProvider for PrivateKeys
fn private_keys(&self) -> PrivateKeys
Source§impl ReferenceProvider for PrivateKeys
impl ReferenceProvider for PrivateKeys
fn reference(&self) -> Reference
Source§fn ref_data_short(&self) -> [u8; 4]
fn ref_data_short(&self) -> [u8; 4]
The first four bytes of the reference
Source§fn ref_hex_short(&self) -> String
fn ref_hex_short(&self) -> String
The first four bytes of the reference as a hexadecimal string.
Source§impl Signer for PrivateKeys
impl Signer for PrivateKeys
Source§impl TryFrom<CBOR> for PrivateKeys
impl TryFrom<CBOR> for PrivateKeys
impl Eq for PrivateKeys
impl StructuralPartialEq for PrivateKeys
Auto Trait Implementations§
impl Freeze for PrivateKeys
impl RefUnwindSafe for PrivateKeys
impl Send for PrivateKeys
impl Sync for PrivateKeys
impl Unpin for PrivateKeys
impl UnwindSafe for PrivateKeys
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