class ProgramKey
Defined at line 36 of file fidling/gen/sdk/fidl/fuchsia.hardware.inlineencryption/fuchsia.hardware.inlineencryption/cpp/fidl/fuchsia.hardware.inlineencryption/cpp/markers.h
Programs the ephemerally wrapped `wrapped_key` into the inline encryption hardware in the
next available slot and returns a `key_token` capability representing that slot. The
returned `key_token` must be registered with a block session via
`fuchsia.storage.block/Session.RegisterKey` before the slot can be used in block I/O
requests. All slots programmed via the connection this method is called on will be evicted
once the connection is dropped. It is not possible to evict individual keys (not for any
technical reasons; a need for this has not yet arisen). `wrapped_key` must be a key wrapped
by the inline encryption hardware (in the same session/boot) via a separate mechanism to
this protocol.
Returns
- ZX_ERR_NO_RESOURCES if there are no available key slots.
- ZX_ERR_INVALID_ARGS if `wrapped_key` is not the expected size or if the `wrapped_key`
fails authentication (e.g. wrapped_key is from a previous boot).
- ZX_ERR_TIMED_OUT if the operation times out.
- ZX_ERR_INTERNAL if the operation failed for any other reason.
Public Members
static const bool kHasClientToServer
static const bool kHasClientToServerBody
static const bool kHasServerToClient
static const bool kHasServerToClientBody
static const bool kHasNonEmptyUserFacingResponse
static const bool kHasDomainError
static const bool kHasFrameworkError
static const uint64_t kOrdinal