There are a number of functions which take no context as input. I think I have caught all of them:
options_open
secrets_manager_open
keypair_generate
keypair_import
publickey_import
secretkey_import
signature_import
symmetric_key_generate
symmetric_key_import
symmetric_state_open
These functions do not align with the general strategy of context-based security as used in other WASI specifications. All WASI functions should have some context object (i.e. handle) which is either provided by the runtime or derived from a handle provided by the runtime.
One suggestion for this handle might be a policy handle which allows the runtime to define which algorithms are permitted.
There are a number of functions which take no context as input. I think I have caught all of them:
options_opensecrets_manager_openkeypair_generatekeypair_importpublickey_importsecretkey_importsignature_importsymmetric_key_generatesymmetric_key_importsymmetric_state_openThese functions do not align with the general strategy of context-based security as used in other WASI specifications. All WASI functions should have some context object (i.e. handle) which is either provided by the runtime or derived from a handle provided by the runtime.
One suggestion for this handle might be a
policyhandle which allows the runtime to define which algorithms are permitted.