View Source fast_scram_definitions (fast_scram v0.6.0)

Summary

Types

-type challenge() :: #challenge{}.
-type scram_definitions() :: #scram_definitions{}.
-type sha_type() :: crypto:sha1() | crypto:sha2().

Functions

Link to this function

check_proof(Scram_definitions, GivenClientProof)

View Source
-spec check_proof(scram_definitions(), binary()) -> ok | {error, binary()}.
Link to this function

client_key(Sha, SaltedPassword)

View Source
-spec client_key(sha_type(), binary()) -> binary().
Link to this function

client_proof(ClientKey, ClientSignature)

View Source
-spec client_proof(binary(), binary()) -> binary().
Link to this function

client_signature(Sha, StoredKey, AuthMessage)

View Source
-spec client_signature(sha_type(), binary(), binary()) -> binary().
Link to this function

salted_password(Sha, Password, Salt, IterationCount)

View Source
-spec salted_password(sha_type(), binary(), binary(), non_neg_integer()) -> binary().
Link to this function

scram_definitions_pipe(Scram_definitions, Challenge, Data)

View Source
-spec scram_definitions_pipe(scram_definitions(), challenge(), map()) -> scram_definitions().
Link to this function

server_key(Sha, SaltedPassword)

View Source
-spec server_key(sha_type(), binary()) -> binary().
Link to this function

server_signature(Sha, ServerKey, AuthMessage)

View Source
-spec server_signature(sha_type(), binary(), binary()) -> binary().
Link to this function

stored_key(Sha, ClientKey)

View Source
-spec stored_key(sha_type(), binary()) -> binary().