Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Crypto.Paseto.PreAuthenticationEncoding
Description
Synopsis
- encode :: [ByteString] -> ByteString
- newtype DecodingError = DecodingError (ByteString, ByteOffset, String)
- decode :: ByteString -> Either DecodingError [ByteString]
Documentation
encode :: [ByteString] -> ByteString Source #
Encode a multipart message using Pre-Authentication Encoding (PAE) as defined in the PASETO spec.
newtype DecodingError Source #
Error decoding a PAE-encoded message.
Constructors
DecodingError (ByteString, ByteOffset, String) |
Instances
Show DecodingError Source # | |
Defined in Crypto.Paseto.PreAuthenticationEncoding Methods showsPrec :: Int -> DecodingError -> ShowS # show :: DecodingError -> String # showList :: [DecodingError] -> ShowS # | |
Eq DecodingError Source # | |
Defined in Crypto.Paseto.PreAuthenticationEncoding Methods (==) :: DecodingError -> DecodingError -> Bool # (/=) :: DecodingError -> DecodingError -> Bool # |
decode :: ByteString -> Either DecodingError [ByteString] Source #
Decode a multipart message which has been encoded using Pre-Authentication Encoding (PAE) as defined in the PASETO spec.