---
title: HPKE.Errors.expectedPSK
framework: cryptokit
role: symbol
role_heading: Case
path: cryptokit/hpke/errors/expectedpsk
---

# HPKE.Errors.expectedPSK

The PSK is nil and the object is in PSK mode, or in authentication and PSK mode.

## Declaration

```swift
case expectedPSK
```
