Interface DiffieHellman.Lazy
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- DiffieHellman
public static interface DiffieHellman.Lazy
-
Method Summary
Modifier and TypeMethodDescriptioncryptoScalarMult(Key publicKey, Key secretKey) Generate a shared key from another user's public key and a secret key.cryptoScalarMultBase(Key secretKey) Generate a public key from a private key.
-
Method Details
-
cryptoScalarMultBase
Generate a public key from a private key.- Parameters:
secretKey- Provide the secret key.- Returns:
- The public key and the provided secret key.
-
cryptoScalarMult
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.
-