Interface DiffieHellman.Lazy

    • Method Detail

      • cryptoScalarMultBase

        Key cryptoScalarMultBase​(Key secretKey)
        Generate a public key from a private key.
        Parameters:
        secretKey - Provide the secret key.
        Returns:
        The public key and the provided secret key.
      • cryptoScalarMult

        Key cryptoScalarMult​(Key publicKey,
                             Key secretKey)
        Generate a shared key from another user's public key and a secret key.
        Parameters:
        publicKey - Another user's public key.
        secretKey - A secret key.
        Returns:
        Shared secret key.