computeSignatures
fun computeSignatures(password: String, salt: ByteArray, iterations: Int, clientFirstMessageBare: String, serverFirstMessage: String, clientFinalMessageWithoutProof: String): ScramSha256Authenticator.ScramResult
Computes the client proof and expected server signature for SCRAM authentication.
Return
A ScramResult containing the computed clientProof and expectedServerSignature.
Parameters
password
The user's plaintext password.
salt
The salt provided by the server.
iterations
The iteration count provided by the server.
clientFirstMessageBare
The bare version of the client-first-message (without gs2-header).
serverFirstMessage
The server-first-message received from the server.
clientFinalMessageWithoutProof
The client-final-message up to the "p=" attribute.