OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLCrypto.cpp File Reference
#include <iostream>
#include <fstream>
#include <map>
#include "XLCrypto.hpp"
#include <mbedtls/aes.h>
#include <mbedtls/sha1.h>
#include <mbedtls/sha512.h>
#include <mbedtls/base64.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/entropy.h>
#include "XLException.hpp"
#include <cstring>
#include <memory>
#include <array>
#include <pugixml.hpp>
#include <algorithm>
#include <iomanip>

Namespaces

namespace  OpenXLSX
 
namespace  OpenXLSX::Crypto
 

Functions

std::vector< uint8_t > OpenXLSX::Crypto::readCfbStream (gsl::span< const uint8_t > data, const std::string &streamName)
 
std::vector< uint8_t > OpenXLSX::Crypto::buildCFB (const std::vector< uint8_t > &info, const std::vector< uint8_t > &pkg)
 
std::vector< uint8_t > OpenXLSX::Crypto::encryptStandardPackage (gsl::span< const uint8_t > zipData, const std::string &password)
 
std::vector< uint8_t > OpenXLSX::Crypto::aes256CbcDecrypt (gsl::span< const uint8_t > data, gsl::span< const uint8_t > key, gsl::span< const uint8_t > iv)
 
std::vector< uint8_t > OpenXLSX::Crypto::sha512Hash (gsl::span< const uint8_t > data)
 
std::vector< uint8_t > OpenXLSX::Crypto::generateAgileHash (const std::string &password, gsl::span< const uint8_t > salt, int spinCount)
 
std::vector< uint8_t > OpenXLSX::Crypto::decryptAgilePackage (gsl::span< const uint8_t > encryptionInfo, gsl::span< const uint8_t > encryptedPackage, const std::string &password)
 
std::string OpenXLSX::Crypto::encodeB64 (gsl::span< const uint8_t > data)
 
std::vector< uint8_t > OpenXLSX::Crypto::encryptAgilePackage (gsl::span< const uint8_t > zipData, const std::string &password)
 
std::vector< uint8_t > OpenXLSX::Crypto::decryptStandardPackage (gsl::span< const uint8_t > encryptionInfo, gsl::span< const uint8_t > encryptedPackage, const std::string &password)