pub struct SealRequest<'a> {
pub credential_id: &'a str,
pub recipient_public_key: &'a [u8; 32],
pub info: &'a [u8],
pub aad: &'a [u8],
pub plaintext: &'a [u8],
}Expand description
One credential.seal request: seal plaintext to recipient_public_key in RFC 9180
Auth mode, with the vault-held KEM key credential_id as the sender. The caller’s
route principal must hold an exact seal grant for that key.
No Debug: the plaintext is the message being protected.
Fields§
§credential_id: &'a str§recipient_public_key: &'a [u8; 32]The recipient’s X25519 public key.
info: &'a [u8]HPKE info, at most 1 KiB.
aad: &'a [u8]Associated data, at most 1 KiB.
plaintext: &'a [u8]At most 64 KiB.
Trait Implementations§
Source§impl<'a> Clone for SealRequest<'a>
impl<'a> Clone for SealRequest<'a>
impl<'a> Copy for SealRequest<'a>
Auto Trait Implementations§
impl<'a> Forget for SealRequest<'a>
impl<'a> Freeze for SealRequest<'a>
impl<'a> Move for SealRequest<'a>
impl<'a> RefUnwindSafe for SealRequest<'a>
impl<'a> Send for SealRequest<'a>
impl<'a> Sync for SealRequest<'a>
impl<'a> Unpin for SealRequest<'a>
impl<'a> UnsafeUnpin for SealRequest<'a>
impl<'a> UnwindSafe for SealRequest<'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