mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
28 lines
638 B
Java
28 lines
638 B
Java
package org.briarproject.api.privategroup;
|
|
|
|
import static org.briarproject.api.sync.SyncConstants.MAX_MESSAGE_BODY_LENGTH;
|
|
|
|
public interface PrivateGroupConstants {
|
|
|
|
/**
|
|
* The maximum length of a group's name in UTF-8 bytes.
|
|
*/
|
|
int MAX_GROUP_NAME_LENGTH = 100;
|
|
|
|
/**
|
|
* The length of a group's random salt in bytes.
|
|
*/
|
|
int GROUP_SALT_LENGTH = 32;
|
|
|
|
/**
|
|
* The maximum length of a group post's body in bytes.
|
|
*/
|
|
int MAX_GROUP_POST_BODY_LENGTH = MAX_MESSAGE_BODY_LENGTH - 1024;
|
|
|
|
/**
|
|
* The maximum length of a group invitation message in bytes.
|
|
*/
|
|
int MAX_GROUP_INVITATION_MSG_LENGTH = MAX_MESSAGE_BODY_LENGTH - 1024;
|
|
|
|
}
|