SRP v0.1.1 SRP.Server behaviour View Source

Defines a SRP server.

defmodule MyApp.SRP.Server do
  use SRP.Server
end

It accepts a prime_size and a hash_algorithm as options.

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

Link to this section Summary

Link to this section Callbacks

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

See more information at SRP.server_key_pair/2.

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

See more information at SRP.server_proof/5.

Link to this callback valid_client_proof?(binary, binary, arg2, binary) View Source
valid_client_proof?(binary(), binary(), KeyPair.t(), binary()) :: boolean()

See more information at SRP.valid_client_proof?/5.