package awa

  1. Overview
  2. Docs
val get_uint32 : Cstruct.t -> (Cstruct.uint32 * Cstruct.t, string) Rresult.result
val put_uint32 : Cstruct.uint32 -> Dbuf.t -> Dbuf.t
val get_uint8 : Cstruct.t -> (Cstruct.uint8 * Cstruct.t, string) Rresult.result
val put_uint8 : Cstruct.uint8 -> Dbuf.t -> Dbuf.t
val get_bool : Cstruct.t -> (bool * Cstruct.t, string) Rresult.result
val put_bool : bool -> Dbuf.t -> Dbuf.t
val get_string : Cstruct.t -> (string * Cstruct.t, string) Rresult.result
val put_string : string -> Dbuf.t -> Dbuf.t
val get_cstring : Cstruct.t -> (Cstruct.t * Cstruct.t, string) Rresult.result
val put_cstring : Cstruct.t -> Dbuf.t -> Dbuf.t
val put_raw : Cstruct.t -> Dbuf.t -> Dbuf.t
val put_random : int -> Dbuf.t -> Dbuf.t
val get_mpint : ?signed:bool -> Cstruct.t -> (Z.t * Cstruct.t, string) Rresult.result
val put_mpint : ?signed:bool -> Z.t -> Dbuf.t -> Dbuf.t
val get_message_id : Cstruct.t -> (Ssh.message_id * Cstruct.t, string) Rresult.result
val put_message_id : Ssh.message_id -> Dbuf.t -> Dbuf.t
val get_nl : Cstruct.t -> (string list * Cstruct.t, string) Rresult.result
val put_nl : string list -> Dbuf.t -> Dbuf.t
val blob_of_pubkey : Hostkey.pub -> Cstruct.t
val pubkey_of_blob : Cstruct.t -> (Hostkey.pub, string) Rresult.result
val get_pubkey_any : Cstruct.t -> (Hostkey.pub * Cstruct.t, string) Rresult.result
val get_pubkey : String.t -> Cstruct.t -> (Hostkey.pub * Cstruct.t, string) Rresult.result
val put_pubkey : Hostkey.pub -> Dbuf.t -> Dbuf.t
val pubkey_of_openssh : Cstruct.t -> (Hostkey.pub, string) Rresult.result
val openssh_of_pubkey : Hostkey.pub -> Cstruct.t
val privkey_of_pem : Cstruct.t -> (Hostkey.priv, [> Rresult.R.msg ]) Rresult.result
val privkey_of_openssh : Cstruct.t -> (Hostkey.priv * string, string) Rresult.result
val put_kexinit : Ssh.kexinit -> Dbuf.t -> Dbuf.t
val blob_of_kexinit : Ssh.kexinit -> Cstruct.t
val get_signature : Cstruct.t -> (Hostkey.alg * Cstruct.t, string) Rresult.result
val put_signature : (Hostkey.alg * Cstruct.t) -> Dbuf.t -> Dbuf.t
val put_channel_data : Ssh.channel_open -> Dbuf.t -> Dbuf.t
val blob_of_channel_data : Ssh.channel_open -> Cstruct.t
val get_message : Cstruct_sexp.t -> (Ssh.message, string) Rresult.result
val dh_kexdh_of_kex : Ssh.message_id -> Cstruct.t -> (Ssh.message, string) Rresult.result
val dh_kexecdh_of_kex : Ssh.message_id -> Cstruct.t -> (Ssh.message, string) Rresult.result
val dh_kexdh_gex_of_kex : Ssh.message_id -> Cstruct.t -> (Ssh.message, string) Rresult.result
val put_message : Ssh.message -> Dbuf.t -> Dbuf.t
val get_payload : Cstruct.t -> (Cstruct.t, string) Rresult.result
val get_version : Cstruct.t -> (string option * Cstruct.t, string) Rresult.result
OCaml

Innovation. Community. Security.