Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
CipherChunk Struct Reference

#include <CipherChunk.hpp>

Public Member Functions

 ~CipherChunk ()=default
 
constexpr bool operator== (const CipherChunk &c) const noexcept
 
std::string toString () const noexcept
 

Public Attributes

std::int64_t idc {}
 
std::int64_t ide {}
 
std::int64_t offset {}
 
std::int64_t size {}
 
std::vector<::Enigma::bytebytes {}
 

Static Public Attributes

static constexpr const std::string_view TABLE_NAME = "CipherChunks"
 

Friends

std::ostream & operator<< (std::ostream &os, const CipherChunk &c) noexcept
 

Detailed Description

CipherChunk Model | table: CipherChunks When we encrypt a buffer (file or text), we get back cipher (aka: encrypted content) Cipher can be large when encrypting large files so we save it in the database in chunks

Definition at line 11 of file CipherChunk.hpp.

Constructor & Destructor Documentation

◆ ~CipherChunk()

CipherChunk::~CipherChunk ( )
default

Member Function Documentation

◆ operator==()

constexpr bool CipherChunk::operator== ( const CipherChunk c) const
inlineconstexprnoexcept

Definition at line 23 of file CipherChunk.hpp.

◆ toString()

std::string CipherChunk::toString ( ) const
inlinenoexcept

Definition at line 32 of file CipherChunk.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CipherChunk c 
)
friend

Definition at line 24 of file CipherChunk.hpp.

Member Data Documentation

◆ bytes

std::vector<::Enigma::byte> CipherChunk::bytes {}

BLOB cipher chunk binary

Definition at line 18 of file CipherChunk.hpp.

◆ idc

std::int64_t CipherChunk::idc {}

auto incremental id

Definition at line 14 of file CipherChunk.hpp.

◆ ide

std::int64_t CipherChunk::ide {}

Which encryption this cipher chunk belongs to?

Definition at line 15 of file CipherChunk.hpp.

◆ offset

std::int64_t CipherChunk::offset {}

Starting offset of this chunk

Definition at line 16 of file CipherChunk.hpp.

◆ size

std::int64_t CipherChunk::size {}

Cipher chunk size

Definition at line 17 of file CipherChunk.hpp.

◆ TABLE_NAME

constexpr const std::string_view CipherChunk::TABLE_NAME = "CipherChunks"
staticconstexpr

Definition at line 12 of file CipherChunk.hpp.


The documentation for this struct was generated from the following file: