pub struct EncryptParams<'a> {
pub content_type: ContentType,
pub plaintext: &'a [u8],
pub recipient: X25519RecipientPublic,
pub content_algorithm: ContentAlgorithm,
pub external_aad: ExternalAad,
pub kdf_parties: KdfParties,
}Expand description
Parameters for build_encrypted.
Fields§
§content_type: ContentTypeThe plaintext content type (protected header 3).
plaintext: &'a [u8]The plaintext to seal.
recipient: X25519RecipientPublicThe recipient’s static X25519 public key.
content_algorithm: ContentAlgorithmThe content-encryption algorithm.
external_aad: ExternalAadThe Enc_structure external AAD.
kdf_parties: KdfPartiesKDF party identities (ride in the recipient protected header).
Trait Implementations§
Source§impl<'a> Clone for EncryptParams<'a>
impl<'a> Clone for EncryptParams<'a>
Source§fn clone(&self) -> EncryptParams<'a>
fn clone(&self) -> EncryptParams<'a>
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<'a> Freeze for EncryptParams<'a>
impl<'a> RefUnwindSafe for EncryptParams<'a>
impl<'a> Send for EncryptParams<'a>
impl<'a> Sync for EncryptParams<'a>
impl<'a> Unpin for EncryptParams<'a>
impl<'a> UnsafeUnpin for EncryptParams<'a>
impl<'a> UnwindSafe for EncryptParams<'a>
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