---
title: "init(accessControl:authenticationContext:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/secureenclave/mlkem1024/privatekey/init(accesscontrol:authenticationcontext:)"
---

# init(accessControl:authenticationContext:)

## Declaration

```swift
init(accessControl: SecAccessControl = SecAccessControlCreateWithFlags(nil, kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, [], nil)!, authenticationContext: LAContext? = nil) throws
```

## See Also

### Creating a private key

- [generate()](cryptokit/secureenclave/mlkem1024/privatekey/generate().md)
- [init(dataRepresentation:authenticationContext:)](cryptokit/secureenclave/mlkem1024/privatekey/init(datarepresentation:authenticationcontext:).md)
