Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
key_store.hpp File Reference
#include <pulp/runtime/base64.hpp>
#include <pulp/runtime/crypto.hpp>
#include <filesystem>
#include <fstream>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::format::reload::KeyMaterial

Namespaces

namespace  pulp
namespace  pulp::format
 What the product grants a device: the quota table indexed by capability tier and live thermal state.
namespace  pulp::format::reload

Functions

std::string pulp::format::reload::serialize_key_blob (const KeyMaterial &k)
 Serialize a keypair to a text blob: magic line, base64 public, base64 private.
std::optional< KeyMaterial > pulp::format::reload::parse_key_blob (std::string_view blob)
 Parse a key blob.
std::optional< KeyMaterial > pulp::format::reload::load_or_generate_key_file (const std::filesystem::path &path, bool &generated)
 Load the key at path, or generate a fresh keypair, write it there (0600), and return it with generated=true so the caller can scream.

Variables

constexpr std::string_view pulp::format::reload::kKeyBlobMagic = "PULP-RELOAD-KEY-v1"