Package 

Interface DiffieHellman.Lazy

    • Method Summary

      Modifier and Type Method Description
      abstract Key cryptoScalarMultBase(Key secretKey) Generate a public key from a private key.
      abstract Key cryptoScalarMult(Key secretKey, Key publicKey) Generate a shared key from another user's public keyand a secret key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cryptoScalarMultBase

         abstract Key cryptoScalarMultBase(Key secretKey)

        Generate a public key from a private key.

        Parameters:
        secretKey - Provide the secret key.
      • cryptoScalarMult

         abstract Key cryptoScalarMult(Key secretKey, Key publicKey)

        Generate a shared key from another user's public keyand a secret key.

        Parameters:
        secretKey - A secret key.
        publicKey - Another user's public key.