---
title: init()
framework: cryptokit
role: symbol
role_heading: Initializer
path: cryptokit/p521/keyagreement/privatekey/init()
---

# init()

Creates a NIST P-521 elliptic curve private key for use with Diffie-Hellman key exchange.

## Declaration

```swift
init()
```
