generated from gdt050579/appcui-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…181 Signed-off-by: Gheorghita Mutu <gheorghitamutu@gmail.com>
- Loading branch information
1 parent
6ec38d3
commit b916c81
Showing
13 changed files
with
566 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include "IDrop.hpp" | ||
|
||
namespace GView::GenericPlugins::Droppper::Archives | ||
{ | ||
enum class Types { MSCAB, RAR, ZIP }; | ||
|
||
static const std::map<Types, Metadata> TYPES_MAP{ | ||
{ Types::MSCAB, | ||
{ "MSCAB", | ||
"Cabinet (or CAB) is an archive-file format for Microsoft Windows that supports lossless data compression and embedded digital certificates used for " | ||
"maintaining archive integrity.", | ||
false } }, | ||
{ Types::RAR, { "RAR", "RAR is a proprietary archive file format that supports data compression, error correction and file spanning.", false } }, | ||
{ Types::ZIP, { "ZIP", "ZIP is an archive file format that supports lossless data compression.", false } }, | ||
}; | ||
} // namespace GView::GenericPlugins::Droppper::Archives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#pragma once | ||
|
||
#include "IDrop.hpp" | ||
|
||
namespace GView::GenericPlugins::Droppper::Cryptographic | ||
{ | ||
enum class Types { | ||
CRC16Table, | ||
CRC16Table8bit1, | ||
CRC16Table8bit2, | ||
CRC32Table, | ||
CRC64Table, | ||
MD5InitValues, | ||
SHA1InitValues, | ||
ZinflateLengthStarts, | ||
ZinflateLengthExtraBits, | ||
ZinflateDistanceStarts, | ||
ZinflateDistanceExtraBits, | ||
ZdeflateLengthCodes, | ||
BlowfishPInit, | ||
BlowfishSInit, | ||
RijndaelTe0, | ||
RijndaelTe1, | ||
RijndaelTe2, | ||
RijndaelTe3, | ||
RijndaelTe4, | ||
RijndaelTd0, | ||
RijndaelTd1, | ||
RijndaelTd2, | ||
RijndaelTd3, | ||
RijndaelTd4, | ||
RC2PITABLE, | ||
PKCSDigestDecorationMD2, | ||
PKCSDigestDecorationMD5, | ||
PKCSDigestDecorationRIPEMD160, | ||
PKCSDigestDecorationTiger, | ||
PKCSDigestDecorationSHA256, | ||
PKCSDigestDecorationSHA384, | ||
PKCSDigestDecorationSHA512, | ||
RC6Stub, | ||
}; | ||
|
||
static const std::string_view DEFAULT_CRC_DESCRIPTION{ "A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and " | ||
"storage devices to detect accidental changes to digital data." }; | ||
|
||
static const std::map<Types, Metadata> TYPES_MAP{ | ||
{ Types::CRC16Table, { "CRC 16 Table", DEFAULT_CRC_DESCRIPTION, false } }, | ||
{ Types::CRC16Table8bit1, { "CRC 16 Table (8 bit - 1)", DEFAULT_CRC_DESCRIPTION, false } }, | ||
{ Types::CRC16Table8bit2, { "CRC 16 Table (8 bit - 2)", DEFAULT_CRC_DESCRIPTION, false } }, | ||
{ Types::CRC32Table, { "CRC 32 Table", DEFAULT_CRC_DESCRIPTION, false } }, | ||
{ Types::CRC64Table, { "CRC 64 Table", DEFAULT_CRC_DESCRIPTION, false } }, | ||
{ Types::MD5InitValues, { "MD5 Init Values", "", false } }, | ||
{ Types::SHA1InitValues, { "SHA1 Init Values", "", false } }, | ||
{ Types::ZinflateLengthStarts, { "Zinflate LengthStarts", "", false } }, | ||
{ Types::ZinflateLengthExtraBits, { "Zinflate LengthExtraBits", "", false } }, | ||
{ Types::ZinflateDistanceStarts, { "Zinflate DistanceStarts", "", false } }, | ||
{ Types::ZinflateDistanceExtraBits, { "Zinflate DistanceExtraBits", "", false } }, | ||
{ Types::ZdeflateLengthCodes, { "Zdeflate LengthCodes", "", false } }, | ||
{ Types::BlowfishPInit, { "Blowfish P-Init", "", false } }, | ||
{ Types::BlowfishSInit, { "Blowfish S-Init", "", false } }, | ||
{ Types::RijndaelTe0, { "Rijndael Te0", "", false } }, | ||
{ Types::RijndaelTe1, { "Rijndael Te1", "", false } }, | ||
{ Types::RijndaelTe2, { "Rijndael Te2", "", false } }, | ||
{ Types::RijndaelTe3, { "Rijndael Te3", "", false } }, | ||
{ Types::RijndaelTe4, { "Rijndael Te4", "", false } }, | ||
{ Types::RijndaelTd0, { "Rijndael Td0", "", false } }, | ||
{ Types::RijndaelTd1, { "Rijndael Td1", "", false } }, | ||
{ Types::RijndaelTd2, { "Rijndael Td2", "", false } }, | ||
{ Types::RijndaelTd3, { "Rijndael Td3", "", false } }, | ||
{ Types::RijndaelTd4, { "Rijndael Td4", "", false } }, | ||
{ Types::RC2PITABLE, { "RC2 PITABLE", "", false } }, | ||
{ Types::PKCSDigestDecorationMD2, { "PKCS DigestDecoration MD2", "", false } }, | ||
{ Types::PKCSDigestDecorationMD5, { "PKCS DigestDecoration MD5", "", false } }, | ||
{ Types::PKCSDigestDecorationRIPEMD160, { "PKCS DigestDecoration RIPEMD160", "", false } }, | ||
{ Types::PKCSDigestDecorationTiger, { "PKCS DigestDecoration Tiger", "", false } }, | ||
{ Types::PKCSDigestDecorationSHA256, { "PKCS DigestDecoration SHA256", "", false } }, | ||
{ Types::PKCSDigestDecorationSHA384, { "PKCS DigestDecoration SHA384", "", false } }, | ||
{ Types::PKCSDigestDecorationSHA512, { "PKCS DigestDecoration SHA512", "", false } }, | ||
{ Types::RC6Stub, { "RC6 Stub", "", false } }, | ||
}; | ||
} // namespace GView::GenericPlugins::Droppper::Cryptographic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include "IDrop.hpp" | ||
|
||
namespace GView::GenericPlugins::Droppper::Images | ||
{ | ||
enum class Types { BMP, JPG, PNG, GIF }; | ||
|
||
static const std::map<Types, Metadata> TYPES_MAP{ | ||
{ Types::BMP, | ||
{ "BMP", | ||
"The BMP file format or bitmap, is a raster graphics image file format used to store bitmap digital images, independently of the display device.", | ||
false } }, | ||
{ Types::JPG, | ||
{ "JPG", | ||
"JP(E)G (Joint Photographic Experts Group) is a commonly used method of lossy compression for digital images, particularly " | ||
"for those images produced by digital photography.", | ||
false } }, | ||
{ Types::PNG, { "PNG", "Portable Network Graphics is a raster-graphics file format that supports lossless data compression.", false } }, | ||
{ Types::GIF, | ||
{ "GIF", | ||
"GIF stands for Graphics Interchange Format. GIF is a raster file format designed for relatively basic images that appear mainly on the internet.", | ||
false } }, | ||
}; | ||
|
||
class PNG : public IDrop | ||
{ | ||
private: | ||
public: | ||
PNG() = default; | ||
|
||
virtual const std::string_view GetName() const override; | ||
virtual ObjectCategory GetGroup() const override; | ||
virtual const std::string_view GetOutputExtension() const override; | ||
virtual Priority GetPriority() const override; | ||
virtual bool ShouldGroupInOneFile() const override; | ||
|
||
virtual Result Check(uint64 offset, DataCache& file, BufferView precachedBuffer, uint64& start, uint64& end) override; | ||
}; | ||
} // namespace GView::GenericPlugins::Droppper::Images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.