cvedia::rt::EncryptionImpl¶
Inherits from Encryption
Public Functions¶
Name | |
---|---|
EncryptionImpl(std::string const & password) | |
EncryptionImpl(nlohmann::json const & j) | |
~EncryptionImpl() override | |
void | resetIv() override |
expected< std::string > | getIvString() override |
std::vector< unsigned char > | getIvBytes() override |
size_t | getIvSize() override |
expected< void > | setIvString(std::string const & iv) override |
expected< void > | setIvBytes(std::vector< unsigned char > iv) override |
NODISCARD expected< std::string > | decryptString(std::string const & message) override |
NODISCARD expected< std::string > | encryptString(std::string const & message) override |
NODISCARD expected< std::vector< unsigned char > > | decryptBytes(std::vector< unsigned char > const & data) override |
NODISCARD expected< std::vector< unsigned char > > | encryptBytes(std::vector< unsigned char > const & data) override |
std::unique_ptr< iface::Encryption > | create(std::string const & password) |
std::string | getBackendAPIUrl() |
expected< RSA * > | getPrivateKey() |
NODISCARD expected< EncryptedAsset > | pkhEncryptAsset(std::vector< unsigned char > const input) |
NODISCARD expected< std::vector< unsigned char > > | pkhDecryptAsset(EncryptedAsset asset) |
Public Functions Documentation¶
function EncryptionImpl¶
explicit EncryptionImpl(
std::string const & password
)
function EncryptionImpl¶
explicit EncryptionImpl(
nlohmann::json const & j
)
function ~EncryptionImpl¶
~EncryptionImpl() override
function resetIv¶
void resetIv() override
function getIvString¶
expected< std::string > getIvString() override
function getIvBytes¶
std::vector< unsigned char > getIvBytes() override
function getIvSize¶
inline size_t getIvSize() override
function setIvString¶
expected< void > setIvString(
std::string const & iv
) override
function setIvBytes¶
expected< void > setIvBytes(
std::vector< unsigned char > iv
) override
function decryptString¶
NODISCARD expected< std::string > decryptString(
std::string const & message
) override
function encryptString¶
NODISCARD expected< std::string > encryptString(
std::string const & message
) override
function decryptBytes¶
NODISCARD expected< std::vector< unsigned char > > decryptBytes(
std::vector< unsigned char > const & data
) override
function encryptBytes¶
NODISCARD expected< std::vector< unsigned char > > encryptBytes(
std::vector< unsigned char > const & data
) override
function create¶
static std::unique_ptr< iface::Encryption > create(
std::string const & password
)
function getBackendAPIUrl¶
static std::string getBackendAPIUrl()
function getPrivateKey¶
static expected< RSA * > getPrivateKey()
function pkhEncryptAsset¶
static NODISCARD expected< EncryptedAsset > pkhEncryptAsset(
std::vector< unsigned char > const input
)
function pkhDecryptAsset¶
static NODISCARD expected< std::vector< unsigned char > > pkhDecryptAsset(
EncryptedAsset asset
)
Updated on 2025-08-24 at 15:42:37 +0000