Contents

init(compactRepresentable:accessControl:authenticationContext:)

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

Declaration

init(compactRepresentable: Bool = true, accessControl: SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LAContext? = 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.

  • authenticationContext:

    A local authentication context.

See Also

Creating a private key