Add secure m2p loader with runtime key enforcement
Some checks failed
build / Windows Build (push) Has been cancelled

This commit is contained in:
server
2026-04-14 12:12:23 +02:00
parent 0c2d6c7c9c
commit 229c809b96
8 changed files with 719 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
#pragma once
#include <array>
#include "M2Pack.h"
bool InitializeM2PackRuntimeKeyProvider(const char* commandLine);
const std::array<uint8_t, M2PACK_KEY_SIZE>& GetM2PackActiveMasterKey();
const std::array<uint8_t, M2PACK_PUBLIC_KEY_SIZE>& GetM2PackActivePublicKey();
bool HasM2PackRuntimeMasterKey();
bool HasM2PackRuntimeKeysForArchiveLoad();
bool IsM2PackUsingRuntimeMasterKey();
bool IsM2PackUsingRuntimePublicKey();