Skip to content
API Documentation
BastionGuard™
encryption_support.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{encryption_support.cpp}

Functions

uint16_t anonymous_namespace{encryption_support.cpp}::be16 (const unsigned char *p)
uint32_t anonymous_namespace{encryption_support.cpp}::le32 (const unsigned char *p)
uint64_t anonymous_namespace{encryption_support.cpp}::le64 (const unsigned char *p)
std::string anonymous_namespace{encryption_support.cpp}::sanitize_name (const std::string &in)
bool anonymous_namespace{encryption_support.cpp}::write_bytes (DiskReader &reader, uint64_t offset, uint64_t length, const fs::path &out_path, std::string &error)
bool anonymous_namespace{encryption_support.cpp}::command_exists (const std::string &name)
std::string anonymous_namespace{encryption_support.cpp}::shell_quote (const std::string &s)
bool anonymous_namespace{encryption_support.cpp}::run_command_capture (const std::string &cmd, std::string &output, int &rc)
std::string anonymous_namespace{encryption_support.cpp}::trim_copy (std::string s)
std::string anonymous_namespace{encryption_support.cpp}::getenv_str (const char *name)
std::string anonymous_namespace{encryption_support.cpp}::getenv_existing_file (const char *name)
bool anonymous_namespace{encryption_support.cpp}::is_partition_like_seed (const ScanResult &seed)
std::vector< uint64_t > anonymous_namespace{encryption_support.cpp}::candidate_offsets (const std::vector< ScanResult > &seed_results)
ScanResult anonymous_namespace{encryption_support.cpp}::probe_luks (DiskReader &reader, uint64_t offset)
ScanResult anonymous_namespace{encryption_support.cpp}::probe_bitlocker (DiskReader &reader, uint64_t offset)
bool anonymous_namespace{encryption_support.cpp}::ensure_parent_created (const fs::path &p, std::string &error)
bool anonymous_namespace{encryption_support.cpp}::create_loop_for_offset (const std::string &source_path, uint64_t offset, std::string &loop_path, std::vector< std::string > &logs, std::string &error)
bool anonymous_namespace{encryption_support.cpp}::cryptsetup_open (const std::string &source_path, uint64_t offset, const std::string &passphrase, UnlockSession &session, std::vector< std::string > &logs, std::string &error)
bool anonymous_namespace{encryption_support.cpp}::cryptsetup_open_with_keyfile (const std::string &source_path, uint64_t offset, const std::string &keyfile, UnlockSession &session, std::vector< std::string > &logs, std::string &error)
bool anonymous_namespace{encryption_support.cpp}::dislocker_open (const std::string &source_path, uint64_t offset, const std::string &credential, bool use_recovery_key, UnlockSession &session, std::vector< std::string > &logs, std::string &error)