|
|
@@ -1,6 +1,6 @@
|
|
|
# asyncdecrypttask.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef ASYNCDECRYPTTASK_H
|
|
|
#define ASYNCDECRYPTTASK_H
|
|
|
|
|
|
@@ -35,7 +35,7 @@ private:
|
|
|
|
|
|
# asyncencrypttask.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef ASYNCENCRYPTTASK_H
|
|
|
#define ASYNCENCRYPTTASK_H
|
|
|
|
|
|
@@ -76,7 +76,7 @@ private:
|
|
|
|
|
|
# config.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
constexpr auto AES_BLOCK_SIZE_16 = 16;
|
|
|
constexpr auto AES_KEY_SIZE_32 = 32;
|
|
|
@@ -90,7 +90,7 @@ constexpr auto CONFIG_MAX_CHUNK_SIZE = 2LL * 1024 * 1024 * 1024;// 2GB
|
|
|
|
|
|
# coreservice.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
#include "encryptiondecryptionmanager.h"
|
|
|
#include "keymanager.h"
|
|
|
@@ -139,7 +139,7 @@ private:
|
|
|
|
|
|
# decrypttask.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef DECRYPTTASK_H
|
|
|
#define DECRYPTTASK_H
|
|
|
|
|
|
@@ -205,7 +205,7 @@ private:
|
|
|
|
|
|
# encryptiondecryptionmanager.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef ENCRYPTIONDECRYPTIONMANAGER_H
|
|
|
#define ENCRYPTIONDECRYPTIONMANAGER_H
|
|
|
|
|
|
@@ -243,7 +243,7 @@ private:
|
|
|
|
|
|
# encrypttask.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef ENCRYPTTASK_H
|
|
|
#define ENCRYPTTASK_H
|
|
|
|
|
|
@@ -301,7 +301,7 @@ public:
|
|
|
|
|
|
# functionwidget.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
|
|
|
#include <QWidget>
|
|
|
@@ -341,7 +341,7 @@ public:
|
|
|
|
|
|
# keymanager.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
|
|
|
#include "qtencryptdecrypt.h"
|
|
|
@@ -415,7 +415,7 @@ private:
|
|
|
|
|
|
# mainwindow.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef MAINWINDOW_H
|
|
|
#define MAINWINDOW_H
|
|
|
#include "coreservice.h"
|
|
|
@@ -519,7 +519,7 @@ private slots:
|
|
|
|
|
|
# paralleldecryptor.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef PARALLELDECRYPTOR_H
|
|
|
#define PARALLELDECRYPTOR_H
|
|
|
|
|
|
@@ -584,7 +584,7 @@ private:
|
|
|
|
|
|
# parallelencryptor.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#ifndef PARALLELENCRYPTOR_H
|
|
|
#define PARALLELENCRYPTOR_H
|
|
|
|
|
|
@@ -645,7 +645,7 @@ private:
|
|
|
|
|
|
# qtencryptdecrypt.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
#include "config.h"
|
|
|
|
|
|
@@ -744,7 +744,7 @@ public slots:
|
|
|
|
|
|
# resource.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
//{{NO_DEPENDENCIES}}
|
|
|
// Microsoft Visual C++ generated include file.
|
|
|
// Used by CipherClient.rc
|
|
|
@@ -764,7 +764,7 @@ public slots:
|
|
|
|
|
|
# test.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
|
|
|
#include <QObject>
|
|
|
@@ -782,7 +782,7 @@ public:
|
|
|
|
|
|
# textwidget.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#pragma once
|
|
|
|
|
|
#include <QGroupBox>
|
|
|
@@ -811,7 +811,7 @@ public:
|
|
|
|
|
|
# ui_mainwindow.h
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
/********************************************************************************
|
|
|
** Form generated from reading UI file 'mainwindow.ui'
|
|
|
**
|
|
|
@@ -879,7 +879,7 @@ QT_END_NAMESPACE
|
|
|
|
|
|
# asyncdecrypttask.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "asyncdecrypttask.h"
|
|
|
#include <QDebug>
|
|
|
#include <QFile>
|
|
|
@@ -1006,7 +1006,7 @@ void AsyncDecryptTask::run() {
|
|
|
|
|
|
# asyncencrypttask.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "asyncencrypttask.h"
|
|
|
#include <QDebug>
|
|
|
#include <QFile>
|
|
|
@@ -1142,7 +1142,7 @@ void AsyncEncryptTask::run() {
|
|
|
|
|
|
# coreservice.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "coreservice.h"
|
|
|
#include <QDebug>
|
|
|
#include <QFile>
|
|
|
@@ -1579,7 +1579,7 @@ void CoreService::decryptLargeFileServer(const QString &metaFilePath,
|
|
|
|
|
|
# decrypttask.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "decrypttask.h"
|
|
|
#include <QFileInfo>
|
|
|
|
|
|
@@ -1743,7 +1743,7 @@ int DecryptTask::partIndex() const { return m_partIndex; }
|
|
|
|
|
|
# encryptiondecryptionmanager.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "encryptiondecryptionmanager.h"
|
|
|
#include "asyncdecrypttask.h"
|
|
|
#include "asyncencrypttask.h"
|
|
|
@@ -1827,7 +1827,7 @@ void EncryptionDecryptionManager::cancelAll() {
|
|
|
|
|
|
# encrypttask.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "encrypttask.h"
|
|
|
#include <QFile>
|
|
|
#include <QFileInfo>
|
|
|
@@ -1987,7 +1987,7 @@ double EncryptTask::speed() const {
|
|
|
|
|
|
# functionwidget.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "functionwidget.h"
|
|
|
|
|
|
FunctionWidget::FunctionWidget(QWidget *parent)
|
|
|
@@ -2086,7 +2086,7 @@ FunctionWidget::~FunctionWidget()
|
|
|
|
|
|
# keymanager.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "keymanager.h"
|
|
|
|
|
|
|
|
|
@@ -2328,7 +2328,7 @@ KeyManager::~KeyManager()
|
|
|
|
|
|
# main.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "mainwindow.h"
|
|
|
#include <QApplication>
|
|
|
|
|
|
@@ -2351,7 +2351,7 @@ int main(int argc, char *argv[]) {
|
|
|
|
|
|
# mainwindow.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "mainwindow.h"
|
|
|
#include "ui_mainwindow.h"
|
|
|
|
|
|
@@ -3000,7 +3000,7 @@ void MainWindow::onDecryptClickedAsyncFile() {
|
|
|
|
|
|
# paralleldecryptor.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "paralleldecryptor.h"
|
|
|
#include "decrypttask.h"
|
|
|
#include <QDir>
|
|
|
@@ -3147,7 +3147,7 @@ bool ParallelDecryptor::writeFinalOutput(const QString &path) {
|
|
|
|
|
|
# parallelencryptor.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "parallelencryptor.h"
|
|
|
#include "encrypttask.h"
|
|
|
#include <QFile>
|
|
|
@@ -3266,7 +3266,7 @@ double ParallelEncryptor::overallSpeed() const {
|
|
|
|
|
|
# qtencryptdecrypt.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "qtencryptdecrypt.h"
|
|
|
|
|
|
QtEncryptDecrypt::QtEncryptDecrypt(QObject *parent) : QObject(parent) {}
|
|
|
@@ -4019,7 +4019,7 @@ bool QtEncryptDecrypt::decryptCiphertext_RSA(const QString &ciphertext,
|
|
|
|
|
|
# test.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "test.h"
|
|
|
|
|
|
Test::Test(QObject *parent)
|
|
|
@@ -4033,7 +4033,7 @@ Test::~Test()
|
|
|
|
|
|
# textwidget.cpp
|
|
|
|
|
|
-```cpp
|
|
|
+```C++
|
|
|
#include "textwidget.h"
|
|
|
|
|
|
TextWidget::TextWidget(QWidget* parent)
|