---
title: MLKEM1024.PrivateKey
framework: cryptokit
role: symbol
role_heading: Structure
path: cryptokit/mlkem1024/privatekey
---

# MLKEM1024.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/mlkem1024/privatekey/generate().md)
- [init()](cryptokit/mlkem1024/privatekey/init().md)
- [init(integrityCheckedRepresentation:)](cryptokit/mlkem1024/privatekey/init(integritycheckedrepresentation:).md)
- [init(seedRepresentation:publicKey:)](cryptokit/mlkem1024/privatekey/init(seedrepresentation:publickey:).md)

### Inspecting a private key’s properties

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

### Decapsulating shared secrets

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

## Relationships

### Conforms To

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

## See Also

### Keys

- [MLKEM1024.PublicKey](cryptokit/mlkem1024/publickey.md)
