Contents

init(compactRepresentable:accessControl:)

Creates a P-256 private key for signing with the specified access control.

Declaration

init(compactRepresentable: Bool = true, accessControl: SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!) throws

Parameters

  • compactRepresentable:

    A Boolean value that indicates whether CryptoKit creates the key with the structure to enable compact point encoding.

  • accessControl:

    The protection type and flags to use when creating the associated access control object.