Psa.CipherUnauthenticated ciphers.
See also Unauthenticated ciphers in Alg.
WARNING It is recommended that newer protocols use Authenticated encryption with associated data (AEAD).
val encrypt :
key:Key_id.t ->
Alg.t ->
plain:Bytesrw.Bytes.Slice.t ->
cipher:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval decrypt :
key:Key_id.t ->
Alg.t ->
cipher:Bytesrw.Bytes.Slice.t ->
plain:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultmodule Operation : sig ... endCipher operations.
val encrypt_setup : Operation.t -> key:Key_id.t -> Alg.t -> Status.tval decrypt_setup : Operation.t -> key:Key_id.t -> Alg.t -> Status.tval generate_iv :
Operation.t ->
iv:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval set_iv : Operation.t -> iv:Bytesrw.Bytes.Slice.t -> Status.tval update :
Operation.t ->
input:Bytesrw.Bytes.Slice.t ->
output:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval finish :
Operation.t ->
output:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval abort : Operation.t -> Status.tval encrypt_output_size : Key_type.t -> Alg.t -> plain_length:int -> intval decrypt_output_size : Key_type.t -> Alg.t -> cipher_length:int -> intval iv_length : Key_type.t -> Alg.t -> intval update_output_size : Key_type.t -> Alg.t -> input_length:int -> intval finish_output_size : Key_type.t -> Alg.t -> intval block_length : Key_type.t -> int