---
title: HPKEDiffieHellmanPrivateKey
framework: cryptokit
role: symbol
role_heading: Protocol
path: cryptokit/hpkediffiehellmanprivatekey
---

# HPKEDiffieHellmanPrivateKey

A type that represents the private key in a Diffie-Hellman key exchange.

## Declaration

```swift
@preconcurrency protocol HPKEDiffieHellmanPrivateKey : DiffieHellmanKeyAgreement where Self.PublicKey : HPKEDiffieHellmanPublicKey
```

## Relationships

### Inherits From

- [DiffieHellmanKeyAgreement](cryptokit/diffiehellmankeyagreement.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Inherited By

- [HPKEDiffieHellmanPrivateKeyGeneration](cryptokit/hpkediffiehellmanprivatekeygeneration.md)

### Conforming Types

- [Curve25519.KeyAgreement.PrivateKey](cryptokit/curve25519/keyagreement/privatekey.md)
- [P256.KeyAgreement.PrivateKey](cryptokit/p256/keyagreement/privatekey.md)
- [P384.KeyAgreement.PrivateKey](cryptokit/p384/keyagreement/privatekey.md)
- [P521.KeyAgreement.PrivateKey](cryptokit/p521/keyagreement/privatekey.md)
- [SecureEnclave.P256.KeyAgreement.PrivateKey](cryptokit/secureenclave/p256/keyagreement/privatekey.md)
