---
title: MLKEM768.PrivateKey
framework: cryptokit
role: symbol
role_heading: Structure
path: cryptokit/mlkem768/privatekey
---

# MLKEM768.PrivateKey

A private key you use to decapsulate shared secrets with the Module-Lattice key encapsulation mechanism.

## Declaration

```swift
struct PrivateKey
```

## Topics

### Creating a private key

- [generate()](cryptokit/mlkem768/privatekey/generate().md)
- [init()](cryptokit/mlkem768/privatekey/init().md)
- [init(integrityCheckedRepresentation:)](cryptokit/mlkem768/privatekey/init(integritycheckedrepresentation:).md)
- [init(seedRepresentation:publicKey:)](cryptokit/mlkem768/privatekey/init(seedrepresentation:publickey:).md)

### Inspecting a private key’s properties

- [integrityCheckedRepresentation](cryptokit/mlkem768/privatekey/integritycheckedrepresentation.md)
- [publicKey](cryptokit/mlkem768/privatekey/publickey.md)
- [seedRepresentation](cryptokit/mlkem768/privatekey/seedrepresentation.md)

### Decapsulating shared secrets

- [decapsulate(_:)](cryptokit/mlkem768/privatekey/decapsulate(_:).md)

## Relationships

### Conforms To

- [KEMPrivateKey](cryptokit/kemprivatekey.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Keys

- [MLKEM768.PublicKey](cryptokit/mlkem768/publickey.md)
