eap-0.6.0.0: Extensible Authentication Protocol (EAP)

Copyright(c) Erick Gonzalez 2017
LicenseBSD3
Maintainererick@codemonkeylabs.de
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Network.EAP.Authentication

Description

This module provides functions implements EAP authentication schemes. New authentication types will be added as needed and contributions are very welcome.

Synopsis

Documentation

authenticateMSCHAPv2 Source #

Arguments

:: 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.

generateNTResponse Source #

Arguments

:: 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