Files
m2dev-client-src/src/PackLib/M2PackRuntimeKeyProvider.h
server ef7cdf2809
Some checks failed
build / Windows Build (push) Has been cancelled
Reduce m2pack client hot-path overhead
2026-04-15 15:43:26 +02:00

16 lines
532 B
C++

#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>* GetM2PackPublicKeyForKeyId(uint32_t keyId);
uint32_t GetM2PackActiveMasterKeyId();
bool HasM2PackRuntimeMasterKey();
bool HasM2PackRuntimeKeysForArchiveLoad(uint32_t keyId);
bool IsM2PackUsingRuntimeMasterKey();
bool IsM2PackUsingRuntimePublicKey();
bool ShouldVerifyM2PackPlaintextHash();