Module Psa.Asymmetric

Asymmetric encryption.

See also Asymmetric encryption in Alg.

Functions

val encrypt : Key_id.t -> Alg.t -> plain:Bytesrw.Bytes.Slice.t -> salt:Bytesrw.Bytes.Slice.t option -> cipher:Bytesrw.Bytes.Slice.t -> (int, Status.t) Stdlib.result
val decrypt : Key_id.t -> Alg.t -> cipher:Bytesrw.Bytes.Slice.t -> salt:Bytesrw.Bytes.Slice.t option -> plain:Bytesrw.Bytes.Slice.t -> (int, Status.t) Stdlib.result

Support functions

val encrypt_output_size : Key_type.t -> bits:int -> Alg.t -> int
val encrypt_output_max_size : unit -> int
val decrypt_output_size : Key_type.t -> bits:int -> Alg.t -> int
val decrypt_output_max_size : unit -> int