pub struct Request {
pub data: ByteBuf,
pub kx: ByteBuf,
pub client_pk: ByteBuf,
pub key_id: String,
pub ts: i64,
}Expand description
Outgoing encrypted request packet produced by build_request_packet.
data holds the AES-256-GCM ciphertext. kx is the session key material encrypted under the
ECDH-derived wrap key; the server recovers it via ECDH to decrypt data. client_pk is the
ephemeral X25519 public key. Integrity is guaranteed by the AES-GCM tags on both fields.
Fields§
§data: ByteBuf§kx: ByteBuf§client_pk: ByteBuf§key_id: String§ts: i64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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