mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Reduced MAX_PUBLIC_KEY_LENGTH to match SEC 1 encoding of 384-bit keys.
This commit is contained in:
@@ -12,5 +12,5 @@ public interface InvitationConstants {
|
||||
|
||||
int HASH_LENGTH = 48; // Bytes
|
||||
|
||||
int MAX_PUBLIC_KEY_LENGTH = 120; // Bytes
|
||||
int MAX_PUBLIC_KEY_LENGTH = 97; // Bytes
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public interface ProtocolConstants {
|
||||
int MAX_GROUP_NAME_LENGTH = 50;
|
||||
|
||||
/** The maximum length of a public key in bytes. */
|
||||
int MAX_PUBLIC_KEY_LENGTH = 120;
|
||||
int MAX_PUBLIC_KEY_LENGTH = 97;
|
||||
|
||||
/** The maximum length of an author's name in UTF-8 bytes. */
|
||||
int MAX_AUTHOR_NAME_LENGTH = 50;
|
||||
|
||||
Reference in New Issue
Block a user