Reduced maximum public key lengths to reasonable lengths for ECDSA.

This commit is contained in:
akwizgran
2011-08-03 21:08:09 +01:00
parent c6ded0227d
commit 93ee4d004e
4 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ public interface Author extends Writable {
static final int MAX_NAME_LENGTH = 50;
/** The maximum length of an author's public key, in bytes. */
static final int MAX_PUBLIC_KEY_LENGTH = 1000;
static final int MAX_PUBLIC_KEY_LENGTH = 100;
/** Returns the author's unique identifier. */
AuthorId getId();

View File

@@ -9,7 +9,7 @@ public interface Group extends Writable {
static final int MAX_NAME_LENGTH = 50;
/** The maximum length of a group's public key, in bytes. */
static final int MAX_PUBLIC_KEY_LENGTH = 1000;
static final int MAX_PUBLIC_KEY_LENGTH = 100;
/** Returns the group's unique identifier. */
GroupId getId();

View File

@@ -6,7 +6,7 @@ public interface Message {
static final int MAX_SIZE = (1024 * 1024) - 200;
/** The maximum size of a signature, in bytes. */
static final int MAX_SIGNATURE_SIZE = 100;
static final int MAX_SIGNATURE_LENGTH = 100;
/** Returns the message's unique identifier. */
MessageId getId();