Enumeration Caseswift-crypto 3.12.2Crypto
inconsistentPSKInputs
The PSK is nil and the PSK ID isn’t nil, or the PSK ID is nil and the PSK isn’t nil.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
case inconsistentPSKInputs
The PSK is nil and the PSK ID isn’t nil, or the PSK ID is nil and the PSK isn’t nil.
case inconsistentPSKInputs
import Crypto
A cryptography library for Swift.
enum Errors
Hybrid public key encryption (HPKE) errors that CryptoKit uses.
enum HPKE
A container for hybrid public key encryption (HPKE) operations.
case inconsistentParameters
The parameters for initializing an HPKE sender or receiver are inconsistent.
case inconsistentCiphersuiteAndKey
The supplied encryption key is incompatible with the requested cipher suite.
case exportOnlyMode
The object is in export-only mode and received a request to encrypt or decrypt data.
case expectedPSK
The PSK is nil and the object is in PSK mode, or in authentication and PSK mode.
case unexpectedPSK
The PSK isn’t nil and the object is in base mode, or in authentication mode.
case outOfRangeSequenceNumber
The sequence number for encrypting or decrypting the message is out of range.
case ciphertextTooShort
The ciphertext is too short.