class LengthlessEncryptedChunkEncoder implements EncryptedChunkEncoder {

    @Override
    public int getEncodedLengthOfChunk(EncryptedChunk chunk) {
        return chunk.nonce().length + chunk.encryptedBytes().length;
    }

}