package cryptokit

  1. Overview
  2. Docs
method input_block_size : int
method output_block_size : int
method tag_size : int
method put_substring : bytes -> int -> int -> unit

See Cryptokit.transform.put_substring.

method put_string : string -> unit

See Cryptokit.transform.put_string.

method put_char : char -> unit

See Cryptokit.transform.put_char.

method put_byte : int -> unit

See Cryptokit.transform.put_byte.

method finish_and_get_tag : string

Call method finish_and_get_tag to indicate that no further data will be processed through the transform. This causes the transform to flush its internal buffers and perform all appropriate finalization actions, e.g. add final padding. The authentication tag for the transformed data is computed and returned. It's a string of length Cryptokit.authenticated_transform.tag_size. After calling finish_and_get_tag, the transform can no longer accept additional data. Hence, after calling finish_and_get_tag, do not call any of the put_* methods nor finish_and_get_tag again.

method available_output : int

See Cryptokit.transform.available_output.

method get_string : string

See Cryptokit.transform.get_string.

method get_substring : bytes * int * int

See Cryptokit.transform.get_substring.

method get_char : char

See Cryptokit.transform.get_char.

method get_byte : int

See Cryptokit.transform.get_byte.

method tag_size : int

The size in bytes of the authentication tags.

method wipe : unit

See Cryptokit.transform.wipe.