template <>

class WireWeakAsyncClientImpl

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

Public Methods

::fidl::internal::WireThenable< ::fuchsia_fxfs::Crypt::CreateKey> CreateKey (uint64_t owner, ::fuchsia_fxfs::wire::KeyPurpose purpose)

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.

Allocates 32 bytes of request buffer on the stack. The callback is stored on the heap.

::fidl::internal::WireThenable< ::fuchsia_fxfs::Crypt::CreateKeyWithId> CreateKeyWithId (uint64_t owner, const ::fidl::Array<uint8_t, 16> & wrapping_key_id, ::fuchsia_fxfs::wire::ObjectType object_type)

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.

Allocates 48 bytes of request buffer on the stack. The callback is stored on the heap.

::fidl::internal::WireThenable< ::fuchsia_fxfs::Crypt::UnwrapKey> UnwrapKey (uint64_t owner, ::fuchsia_fxfs::wire::WrappedKey wrapped_key)

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.

Allocates 192 bytes of request buffer on the stack. The callback is stored on the heap.