Interface DiffieHellman.Lazy

All Known Implementing Classes:
LazySodium, LazySodiumJava
Enclosing interface:
DiffieHellman

public static interface DiffieHellman.Lazy
  • Method Summary

    Modifier and Type
    Method
    Description
    cryptoScalarMult(Key publicKey, Key secretKey)
    Generate a shared key from another user's public key and a secret key.
    Generate a public key from a private key.
  • Method Details

    • 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.