SRP v0.1.1 SRP.Client behaviour View Source

Defines a SRP client.

defmodule MyApp.SRP.Client do
  use SRP.Client
end

It accepts a prime_size and a hash_algorithm as options.

defmodule MyApp.SRP.ClientWithOptions do
  use SRP.Client, prime_size: 8192, hash_algorithm: :sha512
end

Link to this section Summary

Link to this section Callbacks

Link to this callback generate_verifier(arg0) View Source
generate_verifier(Identity.t()) :: IdentityVerifier.t()

See more information at SRP.generate_verifier/2.

Link to this callback key_pair() View Source
key_pair() :: KeyPair.t()

See more information at SRP.client_key_pair/1.

Link to this callback proof(binary, binary, arg2, binary) View Source
proof(binary(), binary(), KeyPair.t(), binary()) :: binary()

See more information at SRP.client_proof/5.

Link to this callback valid_server_proof?(binary, arg1, binary, arg3, binary) View Source
valid_server_proof?(binary(), Identity.t(), binary(), KeyPair.t(), binary()) ::
  boolean()

See more information at SRP.valid_server_proof?/6.