_ui->errorLabel->hide();
- auto sharingPossible = true;
if (!_account->capabilities().sharePublicLink()) {
qCWarning(lcShareLink) << "Link shares have been disabled";
- sharingPossible = false;
} else if (!(maxSharingPermissions & SharePermissionShare)) {
qCWarning(lcShareLink) << "The file can not be shared because it was shared without sharing permission.";
- sharingPossible = false;
}
_ui->enableShareLink->setChecked(false);
QByteArray out(blockSize + OCC::Constants::e2EeTagSize - 1, '\0');
int len = 0;
- int total_len = 0;
qCDebug(lcCse) << "Starting to encrypt the file" << input->fileName() << input->atEnd();
while(!input->atEnd()) {
}
output->write(out, len);
- total_len += len;
}
if(1 != EVP_EncryptFinal_ex(ctx, unsignedData(out), &len)) {
return false;
}
output->write(out, len);
- total_len += len;
/* Get the e2EeTag */
QByteArray e2EeTag(OCC::Constants::e2EeTagSize, '\0');
return QByteArray();
}
- qint64 bytesWritten = 0;
qint64 inputPos = 0;
QByteArray decryptedBlock(blockSize + OCC::Constants::e2EeTagSize - 1, '\0');
return QByteArray();
}
- bytesWritten += writtenToOutput;
-
// advance input position for further read
inputPos += encryptedBlock.size();
return QByteArray();
}
- bytesWritten += writtenToOutput;
-
_decryptedSoFar += OCC::Constants::e2EeTagSize;
_isFinished = true;