#[non_exhaustive]pub struct KariAlgorithm {
pub key_agreement: KariKeyAgreement,
pub key_wrap: KeyWrapAlgorithm,
}Expand description
Combined algorithm parameters for ECDH key agreement (KeyAgreeRecipientInfo).
Passed to DecryptionKey::agree_ecdh so the implementor knows which
ECDH variant and key wrap algorithm to apply.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key_agreement: KariKeyAgreementECDH key derivation scheme (determines curve and KDF hash).
key_wrap: KeyWrapAlgorithmAES key wrap algorithm used to protect the CEK.
Implementations§
Source§impl KariAlgorithm
impl KariAlgorithm
Sourcepub fn new(key_agreement: KariKeyAgreement, key_wrap: KeyWrapAlgorithm) -> Self
pub fn new(key_agreement: KariKeyAgreement, key_wrap: KeyWrapAlgorithm) -> Self
Construct a KariAlgorithm with the given key agreement and wrap schemes.
KariAlgorithm is #[non_exhaustive] so external callers cannot use
struct expression syntax. Use this constructor instead.
Trait Implementations§
Source§impl Clone for KariAlgorithm
impl Clone for KariAlgorithm
Source§fn clone(&self) -> KariAlgorithm
fn clone(&self) -> KariAlgorithm
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 moreSource§impl Debug for KariAlgorithm
impl Debug for KariAlgorithm
Source§impl<'de> Deserialize<'de> for KariAlgorithm
impl<'de> Deserialize<'de> for KariAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for KariAlgorithm
Source§impl PartialEq for KariAlgorithm
impl PartialEq for KariAlgorithm
Source§fn eq(&self, other: &KariAlgorithm) -> bool
fn eq(&self, other: &KariAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KariAlgorithm
impl Serialize for KariAlgorithm
impl StructuralPartialEq for KariAlgorithm
Auto Trait Implementations§
impl Freeze for KariAlgorithm
impl RefUnwindSafe for KariAlgorithm
impl Send for KariAlgorithm
impl Sync for KariAlgorithm
impl Unpin for KariAlgorithm
impl UnsafeUnpin for KariAlgorithm
impl UnwindSafe for KariAlgorithm
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