Use Curve25519 for key agreement.

This commit is contained in:
akwizgran
2018-02-02 17:52:18 +00:00
parent ad241a14e3
commit 56a5b8df87
11 changed files with 120 additions and 88 deletions

View File

@@ -5,7 +5,7 @@ public interface CryptoConstants {
/**
* The maximum length of an agreement public key in bytes.
*/
int MAX_AGREEMENT_PUBLIC_KEY_BYTES = 65;
int MAX_AGREEMENT_PUBLIC_KEY_BYTES = 32;
/**
* The maximum length of a signature public key in bytes.