View Source fast_scram_parse_rules (fast_scram v0.6.0)

Summary

Types

-type challenge() :: #challenge{}.
-type channel_binding() :: #channel_binding{}.
-type fast_scram_state() :: #fast_scram_state{}.
-type nonce() :: #nonce{}.
-type parse_return() :: {ok, fast_scram_state()} | {skip_rule, fast_scram_state()} | {error, binary()}.
-type plus_variant() :: undefined | none | binary().
-type scram_definitions() :: #scram_definitions{}.
-type sha_type() :: crypto:sha1() | crypto:sha2().

Functions

Link to this function

append_to_auth_message(ScramDefs, NewChunk)

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

append_to_auth_message_in_state(State, NewChunk)

View Source
-spec append_to_auth_message_in_state(fast_scram_state(), binary()) -> fast_scram_state().
-spec parse_authzid(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_channel_binding(_, State)

View Source
-spec parse_channel_binding(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_extensions(_, State)

View Source
-spec parse_extensions(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_gs2_cbind_flag(CBind, State)

View Source
-spec parse_gs2_cbind_flag(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_iteration_count(_, State)

View Source
-spec parse_iteration_count(binary(), fast_scram_state()) -> parse_return().
-spec parse_nonce(binary(), fast_scram_state()) -> parse_return().
-spec parse_proof(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_reserved_mext(_, State)

View Source
-spec parse_reserved_mext(binary(), fast_scram_state()) -> parse_return().
-spec parse_salt(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_server_error_or_verifier(_, Fast_scram_state)

View Source
-spec parse_server_error_or_verifier(binary(), fast_scram_state()) -> parse_return().
Link to this function

parse_username(_, State)

View Source
-spec parse_username(binary(), fast_scram_state()) -> parse_return().