SASL helpers for IRC authentication.
IRC networks commonly use SASL PLAIN during registration after the sasl
capability is acknowledged. The payload is base64 encoded as:
authzid NUL authcid NUL password
Summary
Functions
Splits a SASL payload into IRC AUTHENTICATE chunks.
Builds a base64-encoded SASL EXTERNAL payload.
Returns the maximum payload size of one AUTHENTICATE command.
Builds a base64-encoded SASL PLAIN payload.
Builds the final SCRAM-SHA-256 client message and server signature.
Builds the first SCRAM-SHA-256 client message.
Verifies the signature in a final SCRAM-SHA-256 server message.
Functions
Splits a SASL payload into IRC AUTHENTICATE chunks.
Builds a base64-encoded SASL EXTERNAL payload.
Returns the maximum payload size of one AUTHENTICATE command.
Builds a base64-encoded SASL PLAIN payload.
Builds the final SCRAM-SHA-256 client message and server signature.
Builds the first SCRAM-SHA-256 client message.
Verifies the signature in a final SCRAM-SHA-256 server message.