package awa

  1. Overview
  2. Docs
val len_off : int
val get_pkt_len_str : string -> int
val get_pkt_len : Cstruct.t -> int
val set_pkt_len : bytes -> int -> unit
val pad_len_off : int
val get_pad_len_str : string -> int
val get_pad_len : Cstruct.t -> Cstruct.uint8
val set_pad_len : bytes -> int -> unit
val sizeof_pkt_hdr : int
val get_payload : Cstruct.t -> (Cstruct.t, string) result
val hmac : Hmac.key -> int32 -> String.t -> string
val peek_len : Cipher.key -> int32 -> int -> Cstruct.t -> (int, string) result
val partial : Cstruct.t -> ('a option, string) result
val to_msg : Cstruct.t -> (Ssh.message, string) result
val decrypt : Kex.keys -> Cstruct.t -> ((Cstruct.t * Cstruct.t * Kex.keys) option, string) result
val encrypt : Kex.keys -> Ssh.message -> Cstruct.t * Kex.keys
OCaml

Innovation. Community. Security.