template <>

class NaturalSyncClientImpl

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

Public Methods

::fidl::Result< ::fuchsia_fxfs::Crypt::CreateKey> CreateKey (const ::fidl::Request< ::fuchsia_fxfs::Crypt::CreateKey> & request)

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.

::fidl::Result< ::fuchsia_fxfs::Crypt::CreateKeyWithId> CreateKeyWithId (const ::fidl::Request< ::fuchsia_fxfs::Crypt::CreateKeyWithId> & request)

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.

::fidl::Result< ::fuchsia_fxfs::Crypt::UnwrapKey> UnwrapKey (const ::fidl::Request< ::fuchsia_fxfs::Crypt::UnwrapKey> & request)

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.