Copyright | (c) Erick Gonzalez 2017 |
---|---|
License | BSD3 |
Maintainer | erick@codemonkeylabs.de |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This module provides functions implements EAP authentication schemes. New authentication types will be added as needed and contributions are very welcome.
- authenticateMSCHAPv2 :: MSCHAPv2Data -> ByteString -> ByteString -> Except CryptoError Bool
- generateNTResponse :: ByteString -> ByteString -> ByteString -> ByteString -> Except CryptoError ByteString
Documentation
:: MSCHAPv2Data | Decoded data from the MSCHAPv2 response |
-> ByteString | Authenticator challenge sent to the peer on a previous request |
-> ByteString | Authenticating user password |
-> Except CryptoError Bool | Returns either an error from one of the encryption routines or a boolean indicating whether the user response matches the expected value |
Authenticate the MSCHAPv2 response data to a given challenge request, using the supplied cleartext password.
:: ByteString | Authenticator challenge sent to the peer on a previous request |
-> ByteString | Challenge sent back by authenticating peer |
-> ByteString | MSCHAP username |
-> ByteString | Cleartext user password |
-> Except CryptoError ByteString | Returns either an error from one of the encryption routines or the calculated NT response |
Calculate the NT Response as per [RFC2759], Section 8.1