diff --git a/src/websockets.cpp b/src/websockets.cpp index 3f92de1..6a694ec 100644 --- a/src/websockets.cpp +++ b/src/websockets.cpp @@ -480,7 +480,11 @@ void AppDataServer::saveNonceHex(NonceType nt, QString noncehex) { // Encrypt an outgoing message with the stored secret key. QString AppDataServer::encryptOutgoing(QString msg) { - int padding = 256; + // This padding size is ~50% larger than current largest + // message size and makes all current message types + // indistinguishable. If some new message type can + // be larger than this, the padding should probably be increased + int padding = 16*1024; qDebug() << "Encrypt msg(pad="<