glirc-2.35: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Authentication.Ecdsa

Description

Implementation of ECDSA-NIST256P-CHALLENGE SASL authentication mode as implemented at https://github.com/kaniini/ecdsatool and used on Freenode.

Using this mode requires that the ecdsa utility program is available in your search path.

Synopsis

Documentation

authenticationMode :: Text Source #

Identifier for SASL ECDSA challenge response authentication using curve NIST256P.

ECDSA-NIST256P-CHALLENGE

encodeUsername Source #

Arguments

:: Text

username

-> AuthenticatePayload

base-64 encoded username

Encode a username as specified in this authentication mode.

computeResponse Source #

Arguments

:: FilePath

private key file

-> Text

challenge string

-> IO (Either String Text)

error message or response string

Compute the response for a given challenge using the ecdsatool executable which must be available in PATH.