Skip to main content

calculate_server_hash

Function calculate_server_hash 

Source
fn calculate_server_hash(
    shared_a: &BoxedUint,
    client_hash: &[u8],
    session_key: &[u8],
) -> [u8; 32]
Expand description

The server’s answer to calculate_client_hash: H(A || M1 || K), where M1 is the client hash we just sent. A uses the same leading-zero-stripped encoding as the client hash.