Skip to content

Encryption does not work with trt_dump_ep_context_model #23289

@BengtGustafsson

Description

@BengtGustafsson

Describe the issue

If trt_dump_ep_context_model is set to optimize setup performance the decryption step is not done, the code in Status TensorRTCacheModelHandler::GetEpContextFromGraph(const GraphViewer& graph_viewer) only looks for the unencrypted file, while if encryption is enabled and an encryption library is provided its encrypt function is called to encrypt the function (and the .encrypted extension added).

To reproduce

Set the trt_dump_ep_context_model flag and set up encryption, you get an encrypted file but when read back the code only looks for the unencrypted file.

Urgency

We have already given up on being able to use your encryption for our next release, so it is not that urgent for us.

Platform

Windows

OS Version

10 & 11

ONNX Runtime Installation

Built from Source

ONNX Runtime Version or Commit ID

1.20

ONNX Runtime API

C++

Architecture

X64

Execution Provider

TensorRT

Execution Provider Library Version

CUDA 11.8, TrT 10.4.0.26

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:TensorRTissues related to TensorRT execution providerstaleissues that have not been addressed in a while; categorized by a bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions