ProvisioningDataUnitPublicKey

public struct ProvisioningDataUnitPublicKey : ProvisioningDataUnit

Provisioning Data Unit Public Key

This Provisioner sends this PDU to deliver the public key to be used in the ECDH calculations

  • Provisioning Protocol Data Unit Type

    Declaration

    Swift

    private(set) public var unitType: ProvisioningDataUnitType { get }
  • Public Key X

    The X component of public key for the FIPS P-256 algorithm

    Declaration

    Swift

    private(set) public var publicKeyX: Data { get }
  • Public Key Y

    The Y component of public key for the FIPS P-256 algorithm

    Declaration

    Swift

    private(set) public var publicKeyY: Data { get }
  • Create Provisioning Data Unit

    Declaration

    Swift

    public init(publicKeyX: Data, publicKeyY: Data)

    Parameters

    publicKeyX

    Public Key X

    publicKeyY

    Public Key Y

  • Encodes Provisioning Protocol Data Unit into Data

    Declaration

    Swift

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

    Return Value

    Encoded Data Result