hOpenPGP-3.0.1.1: native Haskell implementation of OpenPGP (RFC9580)
Safe HaskellNone
LanguageHaskell2010

Codec.Encryption.OpenPGP.S2K

Synopsis

Documentation

data S2KError Source #

Errors that can arise during string-to-key derivation.

Constructors

S2KUnsupportedAlgorithm CipherError

The symmetric algorithm used in the SKESK is not supported.

S2KUnsupportedSpecifier Word8

An unsupported or unknown S2K specifier type was encountered.

S2KUnsupportedSKESKShape String

An unsupported SKESK shape (e.g. non-zero ESK).

S2KUnsupportedHashAlgorithm HashAlgorithm

A required hash algorithm is not supported for S2K.

S2KArgon2ParamError String

The Argon2 S2K parameters are invalid.

S2KArgon2Failed String

The Argon2 KDF itself failed.

S2KEncryptedSessionKeyCipherError CipherError

Decrypting an embedded encrypted session key failed.

S2KEncryptedSessionKeyDecodeError EncodedSessionKeyError

Embedded encrypted session key material was malformed.

Instances

Instances details
Show S2KError Source # 
Instance details

Defined in Codec.Encryption.OpenPGP.S2K

Eq S2KError Source # 
Instance details

Defined in Codec.Encryption.OpenPGP.S2K