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

Crypto.G3P.BCrypt.Subtle

Description

 
Synopsis

Documentation

bcryptXs :: BCryptXs -> ByteString Source #

bcrypt with an excessive amount of freedom. As such, this function is trivially insecure, but it can still be used to implement secure password hashing functions, including standard bcrypt and the very lightly generalized bcryptRaw.

This was the starting point for bcryptXsCtrSuperRound and bcryptXsFree

bcryptXsCtrSuperRound :: BCryptXsCtr -> Word32 -> Word32 -> Word32 -> Maybe BCryptState -> (Word32, BCryptState) Source #

Likely at least somewhat less subtle than the one above, thanks to the addition of a counter.

bcryptXs_maxKeyLength :: Int Source #

Any key longer than 72 bytes will be truncated.

bcryptXs_maxSaltLength :: Int Source #

Any salt longer than 4168 bytes will be truncated.

bcryptXsCtr_outputLength :: Int Source #

returns 4168 bytes