---
title: KEM.Errors
framework: cryptokit
role: symbol
role_heading: Enumeration
path: cryptokit/kem/errors
---

# KEM.Errors

Errors that CryptoKit throws when it encounters problems in key encapsulation mechanism (KEM) operations.

## Declaration

```swift
enum Errors
```

## Topics

### Enumeration Cases

- [KEM.Errors.invalidSeed](cryptokit/kem/errors/invalidseed.md)
- [KEM.Errors.publicKeyMismatchDuringInitialization](cryptokit/kem/errors/publickeymismatchduringinitialization.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
