---
title: MLKEM768.PublicKey
framework: cryptokit
role: symbol
role_heading: Structure
path: cryptokit/mlkem768/publickey
---

# MLKEM768.PublicKey

A public key you use to encapsulate shared secrets with the Module-Lattice key encapsulation mechanism.

## Declaration

```swift
struct PublicKey
```

## Topics

### Creating a public key

- [init(rawRepresentation:)](cryptokit/mlkem768/publickey/init(rawrepresentation:).md)

### Accessing a key’s raw representation

- [rawRepresentation](cryptokit/mlkem768/publickey/rawrepresentation.md)

### Encapsulating a shared secret

- [encapsulate()](cryptokit/mlkem768/publickey/encapsulate().md)

## Relationships

### Conforms To

- [KEMPublicKey](cryptokit/kempublickey.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Keys

- [MLKEM768.PrivateKey](cryptokit/mlkem768/privatekey.md)
