Psa.MacMessage authentication codes (MAC).
See also Message authentication codes (MAC) in Alg.
val compute :
key:Key_id.t ->
Alg.t ->
input:Bytesrw.Bytes.Slice.t ->
mac:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval verify :
key:Key_id.t ->
Alg.t ->
input:Bytesrw.Bytes.Slice.t ->
mac:Bytesrw.Bytes.Slice.t ->
Status.tmodule Operation : sig ... endMAC operations.
val sign_setup : Operation.t -> Key_id.t -> Alg.t -> Status.tval verify_setup : Operation.t -> Key_id.t -> Alg.t -> Status.tval update : Operation.t -> Bytesrw.Bytes.Slice.t -> Status.tval sign_finish :
Operation.t ->
hash:Bytesrw.Bytes.Slice.t ->
(int, Status.t) Stdlib.resultval verify_finish : Operation.t -> hash:Bytesrw.Bytes.Slice.t -> Status.tval abort : Operation.t -> Status.tval length : Key_type.t -> bits:int -> Alg.t -> int