libkazv
key-export.cpp File Reference
#include <libkazv-config.hpp>
#include "key-export.hpp"
#include <cryptopp/pwdbased.h>
#include <cryptopp/sha.h>
#include <cryptopp/hmac.h>
#include <cryptopp/filters.h>
#include <cryptopp/hex.h>
#include <debug.hpp>
#include "base64.hpp"
#include "aes-256-ctr.hpp"
Include dependency graph for key-export.cpp:

Namespaces

 Kazv
 

Functions

template<class T >
std::string Kazv::toHex (T &&v)
 
std::pair< ByteArray, ByteArray > Kazv::deriveKeyExportKey (std::string password, ByteArray salt, std::size_t iterations)
 Derive the key-export key from the user-inputted password. More...
 
Maybe< nlohmann::jsonKazv::decryptKeyExport (std::string exportContent, std::string password)
 Decrypt the key-export file with the user-inputted password. More...