pub enum KeyWrapAlgorithm {
RsaOaepSha256,
RsaPkcs1v15,
}Expand description
Key-transport wrapping algorithm for CMS EnvelopedData (RFC 5652 §6).
Selects how the content-encryption key (CEK) is encrypted for the recipient’s public key.
Variants§
RsaOaepSha256
RSA-OAEP with SHA-256 hash and MGF1-SHA-256 mask generation (RFC 8017 §7.1). Recommended for new protocols.
RsaPkcs1v15
RSA PKCS#1 v1.5 padding (RFC 8017 §7.2). Provided for interoperability
with legacy systems; prefer KeyWrapAlgorithm::RsaOaepSha256 for new
deployments.
Trait Implementations§
Source§impl Clone for KeyWrapAlgorithm
impl Clone for KeyWrapAlgorithm
Source§fn clone(&self) -> KeyWrapAlgorithm
fn clone(&self) -> KeyWrapAlgorithm
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 moreimpl Copy for KeyWrapAlgorithm
Source§impl Debug for KeyWrapAlgorithm
impl Debug for KeyWrapAlgorithm
impl Eq for KeyWrapAlgorithm
Source§impl PartialEq for KeyWrapAlgorithm
impl PartialEq for KeyWrapAlgorithm
Source§fn eq(&self, other: &KeyWrapAlgorithm) -> bool
fn eq(&self, other: &KeyWrapAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyWrapAlgorithm
Auto Trait Implementations§
impl Freeze for KeyWrapAlgorithm
impl RefUnwindSafe for KeyWrapAlgorithm
impl Send for KeyWrapAlgorithm
impl Sync for KeyWrapAlgorithm
impl Unpin for KeyWrapAlgorithm
impl UnsafeUnpin for KeyWrapAlgorithm
impl UnwindSafe for KeyWrapAlgorithm
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