Skip to main content

Module mac

Module mac 

Source
Expand description

The mac primitive kind: message-authentication codes.

This interface is algorithm-agnostic. Per-algorithm interfaces (such as hmac-sha2) mint mac-key resources bound to their algorithm; every operation hangs off the key. Key handles are capabilities: a world that imports only this interface can use keys it is granted, but cannot mint them (see README.md).

Structs§

MacKey
A MAC key: an unforgeable capability, bound to one algorithm at creation.
MacKeyOptions
Mint-time policy for a mac-key, consumed by the minting interfaces’ functions. Grants nothing by default; see README.md, “Key-options contract”.

Type Aliases§

Error
WrapInput