pub struct OpenRequest<'a> {
pub cose_encrypt: &'a [u8],
pub external_aad: &'a ExternalAad,
pub expected_parties: Option<&'a KdfParties>,
}Expand description
Everything an opener needs, already strictly validated by the decode entry points, plus the raw encrypt bytes so a remote (broker-backed) recipient can forward them verbatim without re-encoding.
The Enc_structure AAD embeds the exact serialized protected-header
bytes, so any re-encoding of cose_encrypt on the way to the key would
break the AEAD tag.
Fields§
§cose_encrypt: &'a [u8]Exact tagged COSE_Encrypt bytes, verbatim.
external_aad: &'a ExternalAadEncryption-layer external AAD.
expected_parties: Option<&'a KdfParties>Pin the KDF party identities, or None to accept the message values.
Trait Implementations§
Source§impl<'a> Clone for OpenRequest<'a>
impl<'a> Clone for OpenRequest<'a>
Source§fn clone(&self) -> OpenRequest<'a>
fn clone(&self) -> OpenRequest<'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 OpenRequest<'a>
impl<'a> RefUnwindSafe for OpenRequest<'a>
impl<'a> Send for OpenRequest<'a>
impl<'a> Sync for OpenRequest<'a>
impl<'a> Unpin for OpenRequest<'a>
impl<'a> UnsafeUnpin for OpenRequest<'a>
impl<'a> UnwindSafe for OpenRequest<'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