ProvisioningData

public struct ProvisioningData : BluetoothEncodable

Provisioning Data

Once the device has been authenticated, the Provisioner and device shall use the calculated Diffie-Hellman shared secret ECDHSecret and generate a session key from that shared secret. That session key shall then be used to encrypt and authenticate the provisioning data. The Provisioner then shall send the Provisioning Data PDU containing the encrypted and authenticated provisioning data to the device

  • Flags

    See more

    Declaration

    Swift

    public struct Flags : OptionSet
    extension ProvisioningData.Flags: Encodable
  • Network Key

    Declaration

    Swift

    private(set) public var networkKey: Data { get }
  • Key Index

    Declaration

    Swift

    private(set) public var keyIndex: UInt16 { get }
  • Flags

    Declaration

    Swift

    private(set) public var flag: Flags { get }
  • IV Index Value

    Current value of the IV Index

    Declaration

    Swift

    private(set) public var ivIndex: UInt32 { get }
  • Unicast Address

    Unicast address of the primary element

    Declaration

    Swift

    private(set) public var unicastAddress: UInt16 { get }
  • Creates a ProvisioningData

    Declaration

    Swift

    public init(networkKey: Data, keyIndex: UInt16, flag: Flags, ivIndex: UInt32, unicastAddress: UInt16)

    Parameters

    networkKey

    Network Key

    keyIndex

    Key Index

    flag

    Flags

    ivIndex

    IV Index Value

    unicastAddress

    Unicast Address

  • Encodes ProvisioningData Data

    Declaration

    Swift

    public func encode() -> Result<Data, BluetoothEncodeError>

    Return Value

    Encoded Data Result