template <>

class WireServer

Defined at line 876 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_fxfs::Crypt>|

and |::fidl::ServerEnd

<

::fuchsia_fxfs::Crypt>|).

Public Methods

void CreateKey (::fuchsia_fxfs::wire::CryptCreateKeyRequest * request, CreateKeyCompleter::Sync & completer)

Creates a new key wrapped with the key identified by `wrapping_key_id`. `owner` identifies

the owner of the key and must be supplied to `UnwrapKey`. The crypt service chooses a

`wrapping_key_id` which must be supplied to UnwrapKey. The `wrapping_key_id` has no

meaning to Fxfs.

TODO(https://fxbug.dev/445189846): Add an `object_type` field to support inline encryption.

void CreateKeyWithId (::fuchsia_fxfs::wire::CryptCreateKeyWithIdRequest * request, CreateKeyWithIdCompleter::Sync & completer)

Creates a new key wrapped with the key identified by `wrapping_key_id`. `owner` identifies

the owner of the key and must be supplied to `UnwrapKey` along with `wrapping_key_id`.

The `wrapping_key_id` has no meaning to Fxfs.

void UnwrapKey (::fuchsia_fxfs::wire::CryptUnwrapKeyRequest * request, UnwrapKeyCompleter::Sync & completer)

Unwraps a key. `owner` must be the same as that passed to `CreateKey`.

This can fail due to permission reasons, but an incorrect key or owner will not fail;

it will just return an unwrapped key that won't actually decrpyt the data.

ZX_ERR_UNAVAILABLE is returned if the key is known but cannot be unwrapped (e.g. it is

locked).

ZX_ERR_NOT_FOUND is returned if the key is not known. In some cases, implementations are

unable to tell the difference between the two, in which case, ZX_ERR_UNAVAILABLE is

returned.

void WireServer ()

Defined at line 879 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 880 of file fidling/gen/src/storage/fxfs/fidl/fuchsia.fxfs/fuchsia.fxfs/cpp/fidl/fuchsia.fxfs/cpp/wire_messaging.h