XML enveloped signature

Hi ,
I am trying to port a java program to RUST . This program is sending XML documents and the documents are digitally signed digitally and signature is enveloped in the XML document .

Example doc .

Could you please help me with pointers to achieve the same in RUST .

For detailed java example .
Programming With the Java XML Digital Signature API.

Perhaps you could call out to the xmlsec tool from your Rust app. Here you have a document describing how it works An Introduction to XML Signature and XML Encryption with XMLSec

Thank you .So we need to call the library as ffi?

Well, XMLSec is a C library, but it also provides an executable, so you could either create FFI bindings or just call the binary from your application.

Thank you