Module kpro_scram

This module is a simplified SCRAM client side implementation.

Description

This module is a simplified SCRAM client side implementation. SCRAM: Salted Challenge Response Authentication Mechanism. REF: https://tools.ietf.org/html/rfc5802 NOTE: Assumptions made in this implementation 1. User names contain ascii codes only 2. User names do not contain '=' or ','

Data Types

scram()

abstract datatype: scram()

Function Index

final/1Make client's final message.
first/1Make the fist client message.
init/3Initialize a scram context.
parse/2Parse server first message.
validate/2Validate server's signature.

Function Details

final/1

final(X1::scram()) -> binary()

Make client's final message.

first/1

first(X1::scram()) -> binary()

Make the fist client message.

init/3

init(Sha::sha256 | sha512, User::binary(), Pass::binary()) -> scram()

Initialize a scram context.

parse/2

parse(X1::scram(), ServerFirstMsg::binary()) -> scram()

Parse server first message.

validate/2

validate(Scram::scram(), ServerFinalMsg::binary()) -> ok

Validate server's signature.


Generated by EDoc