Copyright | (c) 2024 Auth Global |
---|---|
License | Apache2 |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Crypto.G3P.BCrypt.Subtle
Description
Synopsis
- orpheanBeholderScryDoubt :: ByteString
- bcrypt_outputSalt :: ByteString
- bcryptRaw_outputSalt :: ByteString
- bcryptRaw_genInputs :: ByteString -> ByteString -> Word32 -> BCryptXs
- data BCryptXs = BCryptXs {}
- bcryptXs :: BCryptXs -> ByteString
- data BCryptXsCtr = BCryptXsCtr {}
- bcryptXsCtrSuperRound :: BCryptXsCtr -> Word32 -> Word32 -> Word32 -> Maybe BCryptState -> (Word32, BCryptState)
- bcryptXs_maxKeyLength :: Int
- bcryptXs_maxSaltLength :: Int
- bcryptXsCtr_outputLength :: Int
- newtype BCryptState = BCryptState {}
- base64Encode :: ByteString -> ByteString
- base64Decode :: ByteString -> Maybe ByteString
Documentation
bcryptRaw_genInputs :: ByteString -> ByteString -> Word32 -> BCryptXs Source #
Constructors
BCryptXs | |
Fields
|
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
data BCryptXsCtr Source #
Constructors
BCryptXsCtr | |
Fields |
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
newtype BCryptState Source #
Constructors
BCryptState | |
Fields |
Instances
Show BCryptState Source # | |
Defined in Crypto.G3P.BCrypt.Subtle Methods showsPrec :: Int -> BCryptState -> ShowS # show :: BCryptState -> String # showList :: [BCryptState] -> ShowS # | |
Eq BCryptState Source # | |
Defined in Crypto.G3P.BCrypt.Subtle | |
Ord BCryptState Source # | |
Defined in Crypto.G3P.BCrypt.Subtle Methods compare :: BCryptState -> BCryptState -> Ordering # (<) :: BCryptState -> BCryptState -> Bool # (<=) :: BCryptState -> BCryptState -> Bool # (>) :: BCryptState -> BCryptState -> Bool # (>=) :: BCryptState -> BCryptState -> Bool # max :: BCryptState -> BCryptState -> BCryptState # min :: BCryptState -> BCryptState -> BCryptState # |
base64Encode :: ByteString -> ByteString Source #
base64Decode :: ByteString -> Maybe ByteString Source #