Contents

init(_:)

Creates a new custom context that provides unique data.

Declaration

init?(_ data: Data)

Parameters

  • data:

    The data to use as the underlying context, which must be greater than or equal to 3 bytes long.

Return Value

A new Context, or nil if the provided string was too short.

Discussion

Custom contexts may use any data. Set the same byte value on the local and remote devices in order to generate the same shared secret.