From fdd6c3ca661ce8cb4ceb17067afdd60ed788d9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Veres-Szentkir=C3=A1lyi?= Date: Mon, 7 May 2018 13:45:52 +0200 Subject: [PATCH] README: updated signature example The method `calculateSignature` of `Curve25519` instances doesn't take an explicit `random` parameter since 0f10718, but rather generates it implicitly before passing it on to the provider. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40e0834..cb6397f 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ byte[] sharedSecret = cipher.calculateAgreement(publicKey, privateKey); ``` Curve25519 cipher = Curve25519.getInstance(Curve25519.BEST); -byte[] signature = cipher.calculateSignature(secureRandom, privateKey, message); +byte[] signature = cipher.calculateSignature(privateKey, message); ``` ### Verifying a signature: