Class HexHashedServerEvidenceRoutine

  • All Implemented Interfaces:
    com.nimbusds.srp6.ServerEvidenceRoutine, Serializable

    public class HexHashedServerEvidenceRoutine
    extends Object
    implements com.nimbusds.srp6.ServerEvidenceRoutine, Serializable
    Custom routine interface for computing the server evidence message 'M1'. Compatible with browser implementations by using hashing of string concatenated hex strings 'H( HEX(A) | HEX(M1) | HEX(S)'.

    Specification RFC 2945

    Author:
    Simon Massey
    See Also:
    Serialized Form
    • Method Detail

      • computeServerEvidence

        public BigInteger computeServerEvidence​(com.nimbusds.srp6.SRP6CryptoParams cryptoParams,
                                                com.nimbusds.srp6.SRP6ServerEvidenceContext ctx)
        Computes a server evidence message 'M2'.
        Specified by:
        computeServerEvidence in interface com.nimbusds.srp6.ServerEvidenceRoutine
        Parameters:
        cryptoParams - The crypto parameters for the SRP-6a protocol.
        ctx - Snapshot of the SRP-6a server session variables which may be used in the computation of the server evidence message.
        Returns:
        Server evidence message 'M2' as 'H( HEX(A) | HEX(M1) | HEX(S)'