Crate aranya_daemon_api

Source
Expand description

Internal crate for aranya-client and aranya-daemon.

This crate is an implementation detail for aranya-client and aranya-daemon and is exposed out of necessity. It is permanently unstable and does NOT promise backward compatibility.

Modules§

crypto
Cryptography.
quic_sync

Macros§

text
Creates a Text from a string literal.

Structs§

AddTeamConfig
A configuration for adding a team in the daemon.
AddTeamQuicSyncConfig
Configuration for adding members to an existing team with QUIC synchronization.
AqcBidiChannelId
An AQC bidi channel ID.
AqcBidiPsk
An AQC bidirectional channel PSK.
AqcBidiPsks
An injective mapping of PSKs to cipher suites for a single bidirectional channel.
AqcUniChannelId
An AQC uni channel ID.
AqcUniPsk
An AQC unidirectional PSK.
AqcUniPsks
An injective mapping of PSKs to cipher suites for a single unidirectional channel.
CreateTeamConfig
A configuration for creating a team in the daemon.
CreateTeamQuicSyncConfig
Configuration for creating a new team with QUIC synchronization.
DaemonApiClient
The client stub that makes RPC calls to the server. All request methods return Futures.
DeviceId
The Device ID.
Error
An error returned by the API.
Ikm
A PSK IKM.
IntoPsks
An iterator over an AQC channel’s PSKs.
KeyBundle
A device’s public key bundle.
Label
A label.
LabelId
An AQC label ID.
NetIdentifier
A device’s network identifier.
Secret
A secret.
ServeDaemonApi
A serving function to use with ::tarpc::server::InFlightRequest::execute.
SyncPeerConfig
Configuration values for syncing with a peer
TeamId
The Team ID (a.k.a Graph ID).
Text
A string-like value which is utf8 without nul bytes.
Version
SemVer version as defined by https://semver.org.
WrappedSeed

Enums§

AddSeedMode
Specifies how PSK seeds are provided when joining teams.
AqcPsk
An AQC PSK.
AqcPskId
An AQC PSK identity.
AqcPsks
An injective mapping of PSKs to cipher suites for a single bidirectional or unidirectional channel.
AqcPsksIntoIter
An iterator over an AQC channel’s PSKs.
ChanOp
Valid channel operations for a label assignment.
CipherSuiteId
A TLS 1.3 cipher suite.
CreateSeedMode
Specifies how PSK seeds are provided when creating a new team.
DaemonApiRequest
The request sent over the wire from the client to the server.
DaemonApiResponse
The response sent over the wire from the server to the client.
Directed
Either send only or receive only.
Role
A device’s role on the team.

Constants§

SEED_IKM_SIZE

Traits§

DaemonApi
DaemonApiStub
The stub trait for service DaemonApi.

Type Aliases§

AqcCtrl
A serialized command for AQC.
CE
CE = Crypto Engine
CS
CS = Cipher Suite
Result