Companion

internal object Companion

Properties

Link copied to clipboard
const val ENCRYPTED_MESSAGE_OVERHEAD: Int = 256

An encrypted Proteus message has extra information about the encryption itself. The content after encryption is around 190 bytes larger than the original when encrypting the first ever message to a client. Can be smaller (around 110 bytes) after the other client replies for the first time. In order to account the overhead added by each client and user, and to add a safety margin

Link copied to clipboard
const val MAX_CONTENT_SIZE: Int

Maximum size of the messages payload accepted by the servers without ProtoContent.ExternalMessageInstructions.