<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/HPKEKEMPrivateKeyGeneration",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit27HPKEKEMPrivateKeyGenerationP"
  },
  "title" : "HPKEKEMPrivateKeyGeneration"
}
-->

# HPKEKEMPrivateKeyGeneration

A type that represents the generation of private keys in HPKE

```
@preconcurrency protocol HPKEKEMPrivateKeyGeneration : HPKEKEMPrivateKey
```

## Topics

### Initializers

[`init() throws`](/documentation/CryptoKit/HPKEKEMPrivateKeyGeneration/init())

Creates a private key generator.

## Relationships

### Inherits From

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`HPKEKEMPrivateKey`](/documentation/CryptoKit/HPKEKEMPrivateKey)

[`Sendable`](/documentation/Swift/Sendable)

[`KEMPrivateKey`](/documentation/CryptoKit/KEMPrivateKey)

### Conforming Types

[`PrivateKey`](/documentation/CryptoKit/XWingMLKEM768X25519/PrivateKey)

---

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)