Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
model_seal.cpp File Reference
#include "PanoptesML.h"
#include <bcrypt.h>
#include <cstdio>
#include <cstring>
#include <stdexcept>

Go to the source code of this file.

Functions

bool LoadEmbeddedModel (std::vector< uint8_t > &)
 The model built into the DLL (an encrypted RCDATA resource, see tools/sealmodel), decrypted into Model. Returns false when the DLL was built without one, so model.onnx is loaded from its folder instead. Throws std::runtime_error when the embedded model can't be decrypted (modified or corrupted).

Function Documentation

◆ LoadEmbeddedModel()

bool LoadEmbeddedModel ( std::vector< uint8_t > & Model)

The model built into the DLL (an encrypted RCDATA resource, see tools/sealmodel), decrypted into Model. Returns false when the DLL was built without one, so model.onnx is loaded from its folder instead. Throws std::runtime_error when the embedded model can't be decrypted (modified or corrupted).

Definition at line 111 of file model_seal.cpp.

112{
113 return false; // built without assets/ml/model.onnx, or with PANOPTES_ML_EMBED_MODEL off
114}