g3p-hash-2.0.0.0: Global Password Prehash Protocol
Copyright(c) 2024 Auth Global
LicenseApache2
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.G3P.V2.Foxtrot

Description

 
Synopsis

Documentation

g3pFoxtrot :: (Foldable f, Foldable g) => G3PFoxtrotSalt -> f ByteString -> g ByteString -> Word32 -> ByteString Source #

G3Pb2 foxtrot is a function that incorporates a bcrypt-like key-stretching phase. Stripped down version of G3Pb2 charlie, without a built-in continuation control key. test/MyCorpExample.hs uses this as a server-side cryptoacoustic component that sandwiches the comparatively silent argon2.

g3pTango Source #

Arguments

:: Foldable f 
=> HmacKey 
-> f ByteString

inputs

-> Word32

counter

-> ByteString

domain tag

-> ByteString

32-byte output hash

G3Pb2 tango: a simple application of PHKDF used to derive secret server-side salts in test/MyCorpExample.hs.