hashes-0.3.0: Hash functions
CopyrightCopyright © 2021-2024 Lars Kuhtz <lakuhtz@gmail.com>
LicenseMIT
MaintainerLars Kuhtz <lakuhtz@gmail.com>
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Hash.SHA3

Contents

Description

SHA-3 Hash Functions

Synopsis

SHA-3

SHA-3 (Secure Hash Algorithm 3) is a family of cryptographic hash functions standardized in NIST FIPS 202, first published in 2015. It is based on the Keccak algorithm. These functions conform to NIST FIPS 202.

newtype Sha3_224 Source #

Instances

Instances details
IsString Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Show Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Eq Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Ord Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Hash Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

IncrementalHash Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Associated Types

type Context Sha3_224 Source #

ResetableHash Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

reset :: Context Sha3_224 -> IO () Source #

OpenSslDigest Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context Sha3_224 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

newtype Sha3_256 Source #

Instances

Instances details
IsString Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Show Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Eq Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Ord Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Hash Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

IncrementalHash Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Associated Types

type Context Sha3_256 Source #

ResetableHash Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

reset :: Context Sha3_256 -> IO () Source #

OpenSslDigest Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context Sha3_256 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

newtype Sha3_384 Source #

Instances

Instances details
IsString Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Show Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Eq Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Ord Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Hash Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

IncrementalHash Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Associated Types

type Context Sha3_384 Source #

ResetableHash Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

reset :: Context Sha3_384 -> IO () Source #

OpenSslDigest Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context Sha3_384 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

newtype Sha3_512 Source #

Instances

Instances details
IsString Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Show Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Eq Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Ord Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Hash Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

IncrementalHash Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Associated Types

type Context Sha3_512 Source #

ResetableHash Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

reset :: Context Sha3_512 -> IO () Source #

OpenSslDigest Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context Sha3_512 Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

newtype Shake128 (bits :: Natural) Source #

Instances

Instances details
IsString (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

fromString :: String -> Shake128 bits #

Show (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

showsPrec :: Int -> Shake128 bits -> ShowS #

show :: Shake128 bits -> String #

showList :: [Shake128 bits] -> ShowS #

Eq (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

(==) :: Shake128 bits -> Shake128 bits -> Bool #

(/=) :: Shake128 bits -> Shake128 bits -> Bool #

Ord (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

compare :: Shake128 bits -> Shake128 bits -> Ordering #

(<) :: Shake128 bits -> Shake128 bits -> Bool #

(<=) :: Shake128 bits -> Shake128 bits -> Bool #

(>) :: Shake128 bits -> Shake128 bits -> Bool #

(>=) :: Shake128 bits -> Shake128 bits -> Bool #

max :: Shake128 bits -> Shake128 bits -> Shake128 bits #

min :: Shake128 bits -> Shake128 bits -> Shake128 bits #

KnownNat bits => Hash (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

initialize :: IO (Context (Shake128 bits)) Source #

KnownNat bits => IncrementalHash (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Associated Types

type Context (Shake128 bits) Source #

Methods

update :: Context (Shake128 bits) -> Ptr Word8 -> Int -> IO () Source #

finalize :: Context (Shake128 bits) -> IO (Shake128 bits) Source #

KnownNat bits => ResetableHash (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

reset :: Context (Shake128 bits) -> IO () Source #

OpenSslDigest (Shake128 n) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context (Shake128 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context (Shake128 bits)

newtype Shake256 (bits :: Natural) Source #

Instances

Instances details
IsString (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

fromString :: String -> Shake256 bits #

Show (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

showsPrec :: Int -> Shake256 bits -> ShowS #

show :: Shake256 bits -> String #

showList :: [Shake256 bits] -> ShowS #

Eq (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

(==) :: Shake256 bits -> Shake256 bits -> Bool #

(/=) :: Shake256 bits -> Shake256 bits -> Bool #

Ord (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

compare :: Shake256 bits -> Shake256 bits -> Ordering #

(<) :: Shake256 bits -> Shake256 bits -> Bool #

(<=) :: Shake256 bits -> Shake256 bits -> Bool #

(>) :: Shake256 bits -> Shake256 bits -> Bool #

(>=) :: Shake256 bits -> Shake256 bits -> Bool #

max :: Shake256 bits -> Shake256 bits -> Shake256 bits #

min :: Shake256 bits -> Shake256 bits -> Shake256 bits #

KnownNat bits => Hash (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

initialize :: IO (Context (Shake256 bits)) Source #

KnownNat bits => IncrementalHash (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Associated Types

type Context (Shake256 bits) Source #

Methods

update :: Context (Shake256 bits) -> Ptr Word8 -> Int -> IO () Source #

finalize :: Context (Shake256 bits) -> IO (Shake256 bits) Source #

KnownNat bits => ResetableHash (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

Methods

reset :: Context (Shake256 bits) -> IO () Source #

OpenSslDigest (Shake256 n) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context (Shake256 bits) Source # 
Instance details

Defined in Data.Hash.Internal.OpenSSL

type Context (Shake256 bits)