2018-09-07 09:59:52 +00:00
|
|
|
type ctx
|
2018-09-09 15:24:43 +00:00
|
|
|
(** Some context? *)
|
|
|
|
(* XXX: Is this stateful?? *)
|
|
|
|
val key_size : int
|
|
|
|
(** [key_size] is the size of twofish keys. *)
|
2018-09-07 09:59:52 +00:00
|
|
|
val init : string -> ctx
|
2018-09-09 15:24:43 +00:00
|
|
|
(** [init key] is the context / state initialized from secret key [key]. *)
|
2018-09-07 09:59:52 +00:00
|
|
|
val encrypt : ctx -> string -> string
|
2018-09-09 15:24:43 +00:00
|
|
|
(** [encrypt ctx plain_text] is a single block encrypted with [ctx]. *)
|
2018-09-07 09:59:52 +00:00
|
|
|
val decrypt : ctx -> string -> string
|
2018-09-09 15:24:43 +00:00
|
|
|
(** [encrypt ctx cipher_text] is a single block decrypted with [ctx]. *)
|