package awa

  1. Overview
  2. Docs
val get_uint32 : Cstruct.t -> (Cstruct.uint32 * Cstruct.t, string) Stdlib.result
val put_uint32 : Cstruct.uint32 -> Dbuf.t -> Dbuf.t
val get_uint8 : Cstruct.t -> (Cstruct.uint8 * Cstruct.t, string) Stdlib.result
val put_uint8 : Cstruct.uint8 -> Dbuf.t -> Dbuf.t
val get_bool : Cstruct.t -> (bool * Cstruct.t, string) Stdlib.result
val put_bool : bool -> Dbuf.t -> Dbuf.t
val get_string : Cstruct.t -> (string * Cstruct.t, string) Stdlib.result
val put_string : string -> Dbuf.t -> Dbuf.t
val get_cstring : Cstruct.t -> (Cstruct.t * Cstruct.t, string) Stdlib.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) Stdlib.result
val put_mpint : ?signed:bool -> Z.t -> Dbuf.t -> Dbuf.t
val get_message_id : Cstruct.t -> (Ssh.message_id * Cstruct.t, string) Stdlib.result
val put_message_id : Ssh.message_id -> Dbuf.t -> Dbuf.t
val get_nl : Cstruct.t -> (string list * Cstruct.t, string) Stdlib.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) Stdlib.result
val get_pubkey_any : Cstruct.t -> (Hostkey.pub * Cstruct.t, string) Stdlib.result
val get_pubkey : string -> Cstruct.t -> (Hostkey.pub * Cstruct.t, string) Stdlib.result
val put_pubkey : Hostkey.pub -> Dbuf.t -> Dbuf.t
val pubkey_of_openssh : Cstruct.t -> (Hostkey.pub, string) Stdlib.result
val openssh_of_pubkey : Hostkey.pub -> Cstruct.t
val privkey_of_pem : Cstruct.t -> (Hostkey.priv, [> `Msg of string ]) Stdlib.result
val privkey_of_openssh : Cstruct.t -> (Hostkey.priv * string, string) Stdlib.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) Stdlib.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.t -> (Ssh.message, string) Stdlib.result
val dh_kexdh_of_kex : Ssh.message_id -> Cstruct.t -> (Ssh.message, string) Stdlib.result
val dh_kexecdh_of_kex : Ssh.message_id -> Cstruct.t -> (Ssh.message, string) Stdlib.result
val dh_kexdh_gex_of_kex : Ssh.message_id -> Cstruct.t -> (Ssh.message, string) Stdlib.result
val userauth_pk_ok : Cstruct.t -> (Ssh.message, string) Stdlib.result
val userauth_info_request : Cstruct.t -> (Ssh.message, string) Stdlib.result
val put_message : Ssh.message -> Dbuf.t -> Dbuf.t
val get_version : Cstruct.t -> (string option * Cstruct.t, string) Stdlib.result
OCaml

Innovation. Community. Security.