TFHE-rs -integration with Matlab

I am a PhD student, I need your help on how to integrate TFHE-rs with Matlab for some operations that need to be performed on both sides within my research. Particularly, I have some binary vectors in Matlab and I need to encrypt them using TFHE and perform some boolean operations on them then decrypt them and send the result back to Matlab.

Hello @Dawoud

I think one way you could do it is to use some sort of serialization format from matlab to rust.

You would set up a rust project which depends on TFHE-rs and some serialization library.

There may be a way to save matlab arrays in a format that’s friendly/has support on the rust side.

You may be able to load mat files with matfile - Rust on the rust side


1 Like