ONNX-LRE
C++ API documentation
Loading...
Searching...
No Matches
OnnxLre::Cryption Struct Reference

Encryption parameters for protected model access. More...

#include <onnx_lre.hpp>

Public Attributes

std::string password = {}
 Decryption password for the model file.
std::string key_path = {}
 Path to the encryption key file on disk.

Detailed Description

Encryption parameters for protected model access.

Contains credentials needed to decrypt protected ONNX models before loading. Both fields must be properly configured for encrypted model files.

Example usage:

// Setup encryption parameters
crypt.password = "model_password123";
crypt.key_path = "/path/to/encryption.key";
// Add to options
opts.cryption = crypt;
// Create engine with encrypted model
OnnxLre::LatentRuntimeEngine engine("/path/to/encrypted.onnx", opts);
The LatentRuntimeEngine class provides a C++ interface to load and run ONNX models using ONNX Runtime...
Definition onnx_lre.hpp:253
Encryption parameters for protected model access.
Definition onnx_lre.hpp:162
std::string password
Decryption password for the model file.
Definition onnx_lre.hpp:163
std::string key_path
Path to the encryption key file on disk.
Definition onnx_lre.hpp:164
Configuration parameters for the inference engine.
Definition onnx_lre.hpp:233
Cryption cryption
Encryption settings, including password and key path, for encrypted models.
Definition onnx_lre.hpp:234

Member Data Documentation

◆ password

std::string OnnxLre::Cryption::password = {}

Decryption password for the model file.

◆ key_path

std::string OnnxLre::Cryption::key_path = {}

Path to the encryption key file on disk.


The documentation for this struct was generated from the following file:
  • include/onnx_lre/onnx_lre.hpp