SecurityMessage
A structure that carries key material for a secure channel between the system and an accessory.
Declaration
struct SecurityMessageMentioned 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.