noisegate_hs (noisegate v1.0.0)
View SourceSummary
Types
-type opts() :: map().
-type result() :: #{send := herrie_cipher_state:state(), recv := herrie_cipher_state:state(), remote_name := binary(), remote_key := binary(), suite := suite()}.
-type suite() :: chachapoly_blake2b | aesgcm_sha512 | aesgcm_sha256 | aesgcm_blake2b.
Functions
-spec initiate(gen_tcp:socket(), binary(), noisegate_keys:key_info(), opts()) -> {ok, result()} | {error, term()}.
-spec respond(gen_tcp:socket(), binary(), noisegate_keys:key_info(), opts()) -> {ok, result()} | {error, term()}.