You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DiffieHellman.Lazy.cryptoScalarMult accepts parameters named publicKey, secretKey, but the underlying implementation expects the secret key first. If you use the documented argument order, key agreement doesn't work.
Relatedly, it also might be wise to create subclasses of Key with names like SodiumBoxPublicKey. Even if the method is documented correctly, having everything be called Key makes it easy for a caller to mess up. (I'd be happy to submit a PR for this, as I've done something similar in my own use of lazysodium.)
DiffieHellman.Lazy.cryptoScalarMult
accepts parameters namedpublicKey, secretKey
, but the underlying implementation expects the secret key first. If you use the documented argument order, key agreement doesn't work.lazysodium-java/src/main/java/com/goterl/lazysodium/interfaces/DiffieHellman.java
Line 49 in 64dc785
The text was updated successfully, but these errors were encountered: