paseto-0.1.1.1: Platform-Agnostic Security Tokens
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Paseto.ScrubbedBytes

Synopsis

Documentation

data ScrubbedBytes32 where Source #

Simple wrapper around a 32-byte (256-bit) ScrubbedBytes value.

Note that this type's Eq instance performs a constant-time equality check.

Bundled Patterns

pattern ScrubbedBytes32 :: ScrubbedBytes -> ScrubbedBytes32 

Instances

Instances details
Show ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

NormalForm ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

NFData ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

Methods

rnf :: ScrubbedBytes32 -> () #

Eq ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

Ord ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

ByteArrayAccess ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

ByteArrayN 32 ScrubbedBytes32 Source # 
Instance details

Defined in Crypto.Paseto.ScrubbedBytes

Methods

allocRet :: Proxy 32 -> (Ptr p -> IO a) -> IO (a, ScrubbedBytes32) #

mkScrubbedBytes32 :: ByteArrayAccess b => b -> Maybe ScrubbedBytes32 Source #

Construct a 32-byte (256-bit) ScrubbedBytes value from an array of bytes.