Module Psa.Key_persistence

Key persistence.

Key persistence

type t

The type for psa_key_persistence_t.

val volatile : t
val default : t
val read_only : t

Predicates and comparisons

val equal : t -> t -> bool

equal p0 p1 is true iff p0 and p1 are equal.

val compare : t -> t -> int

compare is a total order compatible with equal.

Converting

val to_uint8 : t -> uint8

to_uint8 p is p as an unsigned 8-bit integer.

val of_uint8 : uint8 -> t

of_uint8 i is a key persistence from i.

Formatting

val pp : Stdlib.Format.formatter -> t -> unit

pp formats key persistence for inspection.