pub struct DhParamsForRetry {
pub dh_prime: Vec<u8>,
pub g: u32,
pub g_a: Vec<u8>,
pub server_time: i32,
pub aes_key: [u8; 32],
pub aes_iv: [u8; 32],
}Expand description
Pre-processed server DH parameters retained so that step 3 can be
repeated on dh_gen_retry without having to re-decrypt the server response.
Fields§
§dh_prime: Vec<u8>Server-supplied DH prime (big-endian bytes).
g: u32DH generator g.
g_a: Vec<u8>Server’s public DH value g_a (big-endian bytes).
server_time: i32Server’s reported Unix timestamp (used to compute time_offset).
aes_key: [u8; 32]AES key derived from nonces for this session’s IGE encryption.
aes_iv: [u8; 32]AES IV derived from nonces for this session’s IGE encryption.
Trait Implementations§
Source§impl Clone for DhParamsForRetry
impl Clone for DhParamsForRetry
Source§fn clone(&self) -> DhParamsForRetry
fn clone(&self) -> DhParamsForRetry
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for DhParamsForRetry
impl RefUnwindSafe for DhParamsForRetry
impl Send for DhParamsForRetry
impl Sync for DhParamsForRetry
impl Unpin for DhParamsForRetry
impl UnsafeUnpin for DhParamsForRetry
impl UnwindSafe for DhParamsForRetry
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