Google is committed to advancing racial equity for Black communities. See how.

fuchsia.fxfs

PROTOCOLS

Crypt

Defined in fuchsia.fxfs/fxfs.fidl

CreateKey

Creates a new key wrapped with the key identified by wrapping_key_id. owner identifies the owner of the key and must be suppled to UnwrapKeys.

Request

NameType
wrapping_key_id uint64
owner uint64

Response

NameType
result Crypt_CreateKey_Result

UnwrapKeys

Unwraps keys that are wrapped by the key identified by wrapping_key_id. 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.

Request

NameType
wrapping_key_id uint64
owner uint64
keys vector<vector<uint8>>[8]

Response

NameType
result Crypt_UnwrapKeys_Result

Volume

Defined in fuchsia.fxfs/fxfs.fidl

Create

Creates a new volume identified by name. crypt should provide all key access for the given volume. outgoing_directory will contain the root and other services exposed by the volume.

Request

NameType
name string[255]
crypt Crypt
outgoing_directory request<fuchsia.io/Directory>

Response

NameType
result Volume_Create_Result

Unlock

Unlocks the volume identified by name. crypt should provide all key access for the given volume. outgoing_directory will contain the root and other services exposed by the volume.

Request

NameType
name string[255]
crypt Crypt
outgoing_directory request<fuchsia.io/Directory>

Response

NameType
result Volume_Unlock_Result

STRUCTS

Crypt_CreateKey_Response

Defined in fuchsia.fxfs/fxfs.fidl

NameTypeDescriptionDefault
wrapped_key vector<uint8>[32] No default
unwrapped_key vector<uint8>[32] No default

Crypt_UnwrapKeys_Response

Defined in fuchsia.fxfs/fxfs.fidl

NameTypeDescriptionDefault
unwrapped_keys vector<vector<uint8>>[8] No default

Volume_Create_Response

Defined in fuchsia.fxfs/fxfs.fidl

<EMPTY>

Volume_Unlock_Response

Defined in fuchsia.fxfs/fxfs.fidl

<EMPTY>

UNIONS

Crypt_CreateKey_Result strict

Defined in fuchsia.fxfs/fxfs.fidl

NameTypeDescription
response Crypt_CreateKey_Response
err zx/status

Crypt_UnwrapKeys_Result strict

Defined in fuchsia.fxfs/fxfs.fidl

NameTypeDescription
response Crypt_UnwrapKeys_Response
err zx/status

Volume_Create_Result strict

Defined in fuchsia.fxfs/fxfs.fidl

NameTypeDescription
response Volume_Create_Response
err zx/status

Volume_Unlock_Result strict

Defined in fuchsia.fxfs/fxfs.fidl

NameTypeDescription
response Volume_Unlock_Response
err zx/status