Copyright | (c) 2024 Auth Global |
---|---|
License | Apache2 |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Crypto.G3P.V2.Foxtrot
Description
Synopsis
- data G3PFoxtrotSalt = G3PFoxtrotSalt {}
- g3pFoxtrot :: (Foldable f, Foldable g) => G3PFoxtrotSalt -> f ByteString -> g ByteString -> Word32 -> ByteString
- g3pTango :: Foldable f => HmacKey -> f ByteString -> Word32 -> ByteString -> ByteString
Documentation
data G3PFoxtrotSalt Source #
Constructors
G3PFoxtrotSalt | |
Fields |
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.
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
.