Reduced MAX_PUBLIC_KEY_LENGTH to match SEC 1 encoding of 384-bit keys.

This commit is contained in:
akwizgran
2013-01-03 21:42:05 +00:00
parent 2dd369214e
commit 5f65b8a9fb
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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;