<!--
{
  "documentType" : "article",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/P256/KeyAgreement/PrivateKey/HPKEDiffieHellmanPrivateKeyGeneration-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "HPKEDiffieHellmanPrivateKeyGeneration Implementations"
}
-->

# HPKEDiffieHellmanPrivateKeyGeneration Implementations

## Topics

### Initializers

[`init()`](/documentation/CryptoKit/P256/KeyAgreement/PrivateKey/init())

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)