WebAssembly / wasi-crypto

WASI Cryptography API Proposal
162 stars 25 forks source link

Exporting Keys & FIPS #59

Closed npmccallum closed 1 year ago

npmccallum commented 2 years ago

FIPS generally requires that keys not be exportable in plaintext. For example, NSS disables all export functionality in FIPS mode.

What is the plan for the following functions in a FIPS-regulated environment?

jedisct1 commented 2 years ago

The runtime may or may not allow managed keys to be exported. This allows the runtime to act as a HSM, where applications can only refer to keys using key identifiers.

The prohibited_operation error code is returned if an export operation is refused for compliance reasons.