ECKey

class ECKey

ECKey collects properties into a single object for an elliptic curve key.

  • The label for this key in the Keychain.

    Declaration

    Swift

    private(set) public var label: String? { get }
  • tag

    The tag for this key in the Keychain.

    Declaration

    Swift

    private(set) public var tag: String? { get }
  • The access group for this key in the Keychain.

    Declaration

    Swift

    private(set) public var accessGroup: String { get }
  • Is the private key stored in the Secure Enclave?

    Declaration

    Swift

    private(set) public var isSecureEnclave: Bool { get }
  • The private SecKey.

    Declaration

    Swift

    private(set) public var privateSecKey: SecKey { get }
  • The public SecKey.

    Declaration

    Swift

    private(set) public var publicSecKey: SecKey { get }
  • The uncompressed public key in ANSI X9.63 format (65 bytes, starts with 04).

    Declaration

    Swift

    private(set) public var uncompressedPublicKey: Data { get }
  • The compressed public key in ANSI X9.63 format (33 bytes, starts with 02 or 03).

    Declaration

    Swift

    private(set) public var compressedPublicKey: Data { get }
  • Init an ECKey.

    Declaration

    Swift

    public init?(attributes: [String : Any])

    Parameters

    attributes

    A dictionary of attributes from a Keychain query.