Psa.AeadAuthenticated encryption with associated data (AEAD).
See also Authenticated encryption with associcated data (AEAD) in Alg.
val encrypt :
key:Key_id.t ->
Alg.t ->
nonce:Bytesrw.Bytes.Slice.t ->
ad:Bytesrw.Bytes.Slice.t ->
plain:Bytesrw.Bytes.Slice.t ->
cipher:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval decrypt :
key:Key_id.t ->
Alg.t ->
nonce:Bytesrw.Bytes.Slice.t ->
ad:Bytesrw.Bytes.Slice.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 set_lengths : Operation.t -> ad_length:int -> plain_length:int -> Status.tval generate_nonce :
Operation.t ->
nonce:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval set_nonce : Operation.t -> nonce:Bytesrw.Bytes.Slice.t -> Status.tval update_ad : Operation.t -> ad: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 ->
cipher:Bytesrw.Bytes.Slice.t ->
tag:Bytesrw.Bytes.Slice.t ->
(int * int, Status.t) Stdlib.resultval verify :
Operation.t ->
plain:Bytesrw.Bytes.Slice.t ->
tag: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 nonce_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 tag_length : Key_type.t -> bits:int -> Alg.t -> intval verify_output_size : Key_type.t -> Alg.t -> int