sha256-0.1.0.2: A modern binding to SHA256, HMAC, HKDF, and PBKDF2
Copyright(c) 2024 Auth Global
LicenseApache2
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.Sha256.Hkdf

Description

Implementation of HKDF-SHA256 supporting key reuse, backtracking, streaming, and more.

Synopsis

Documentation

hkdf Source #

Arguments

:: HmacKeyPlain

salt

-> ByteString

initial keying material

-> ByteString

info tag

-> Int

desired output length

-> ByteString 

hkdf' Source #

Arguments

:: HmacKeyPlain

salt

-> ByteString

initial keying material

-> ByteString

info tag

-> Int

desired output length

-> HashString 

hkdfList Source #

Arguments

:: HmacKeyPlain

salt

-> ByteString

initial keying material

-> ByteString

info tag

-> [ByteString] 

hkdfList' Source #

Arguments

:: HmacKeyPlain

salt

-> ByteString

initial keying material

-> ByteString

info tag

-> [HashString] 

hkdfGen Source #

Arguments

:: HmacKeyPlain

salt

-> ByteString

initial keying material

-> ByteString

info tag

-> HkdfGen 

hkdfExtract Source #

Arguments

:: HmacKey

salt

-> ByteString

initial keying material

-> HmacKey

pseudorandom key

hkdfExpand Source #

Arguments

:: HmacKey

pseudorandom key

-> ByteString

info tag

-> Int

desired length

-> ByteString 

hkdfExpand' Source #

Arguments

:: HmacKey

pseudorandom key

-> ByteString

info tag

-> Int

desired length

-> HashString 

hkdfExpandList Source #

Arguments

:: HmacKey

pseudorandom key

-> ByteString

info tag

-> [ByteString]

infinite lazy list of output blocks

hkdfExpandList' Source #

Arguments

:: HmacKey

pseudorandom key

-> ByteString

info tag

-> [HashString]

infinite lazy list of output blocks

hkdfExpandGen Source #

Arguments

:: HmacKey

pseudorandom key

-> ByteString

info tag

-> HkdfGen 

data HkdfCtx Source #

Context type for incremental hkdfExtract

Instances

Instances details
Eq HkdfCtx Source # 
Instance details

Defined in Crypto.Sha256.Hkdf.Subtle

Methods

(==) :: HkdfCtx -> HkdfCtx -> Bool #

(/=) :: HkdfCtx -> HkdfCtx -> Bool #

Ord HkdfCtx Source # 
Instance details

Defined in Crypto.Sha256.Hkdf.Subtle

data HkdfGen Source #

Plain-old-data representation of the generator for hkdfExpand