ONNX-LRE
C++ API documentation
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. More...
 
std::string key_path = {}
 Path to the encryption key file on disk. More...
 

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);

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:
OnnxLre::Cryption::password
std::string password
Decryption password for the model file.
Definition: onnx_lre.hpp:90
OnnxLre::Options::cryption
Cryption cryption
Credentials for encrypted models (optional)
Definition: onnx_lre.hpp:159
OnnxLre::Cryption::key_path
std::string key_path
Path to the encryption key file on disk.
Definition: onnx_lre.hpp:91
OnnxLre::Cryption
Encryption parameters for protected model access.
Definition: onnx_lre.hpp:88
OnnxLre::Options
Configuration parameters for the inference engine.
Definition: onnx_lre.hpp:157
OnnxLre::LatentRuntimeEngine
Definition: onnx_lre.hpp:167