Enumeration Caseswift-crypto 3.8.0Crypto
inconsistentCiphersuiteAndKey
The supplied encryption key is incompatible with the requested cipher suite.
HPKE-Errors.swift:25case inconsistentCiphersuiteAndKey
Other cases
case inconsistentParameters
The parameters for initializing an HPKE sender or receiver are inconsistent.
case exportOnlyMode
The object is in export-only mode and received a request to encrypt or decrypt data.
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 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.