ark::crypt::SrpClient

Defined in header “ark/crypt/srp.hh”.


An SRP client a single instance of this can be used to authenticate with a remote SRP source (such as AWS) once.

Methods

  • SrpClient(const std::string & username, const std::string & password)
    Constructor. Initializes the client with the given username and password.

  • ~SrpClient()
    Destructor.

  • std::string A()
    Returns the ‘A’ component of the challenge, as a hex string.

  • std::string M1(const std::string & salt, const std::string & B)
    Returns the ‘M1’ component, based on the salt and B parameter, as a hex string.