<!--
{
  "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/XWingMLKEM768X25519/PrivateKey",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit",
      "CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit19XWingMLKEM768X25519O10PrivateKeyV"
  },
  "title" : "XWingMLKEM768X25519.PrivateKey"
}
-->

# XWingMLKEM768X25519.PrivateKey

```
struct PrivateKey
```

## Topics

### Creating a private key

[`init<D>(integrityCheckedRepresentation: D) throws`](/documentation/CryptoKit/XWingMLKEM768X25519/PrivateKey/init(integrityCheckedRepresentation:))

[`init<D>(seedRepresentation: D, publicKey: XWingMLKEM768X25519.PublicKey?) throws`](/documentation/CryptoKit/XWingMLKEM768X25519/PrivateKey/init(seedRepresentation:publicKey:))

### Inspecting a private key’s properties

[`var integrityCheckedRepresentation: Data`](/documentation/CryptoKit/XWingMLKEM768X25519/PrivateKey/integrityCheckedRepresentation)

[`var seedRepresentation: Data`](/documentation/CryptoKit/XWingMLKEM768X25519/PrivateKey/seedRepresentation)

### Decapsulating a shared secret

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)