Contents

SecurityMessage

A structure that carries key material for a secure channel between the system and an accessory.

Declaration

struct SecurityMessage

Mentioned in

Overview

Your AccessoryTransportSecurity extension provides instances of this type to initiate key exchange and receives them during messageReceived(_:completion:) to complete the exchange.

Derive encryption secrets

Export HPKE secrets once during key exchange when handling SecurityMessage.KeyType.encapsulatedKey. Store the exported secrets for both HostToAccessory and AccessoryToHost directions for all subsequent message encryption and decryption.

Topics

Creating security messages

Accessing key material

Determining encryption method

Specifying transport preferences

Deriving HPKE keys

See Also

Data and sessions