tum-i4 / sip-oblivious-hashing

7 stars 4 forks source link

SC guards are not protected by global OH #149

Closed dennisfischer closed 6 years ago

dennisfischer commented 6 years ago

I observe that only the SC guards in the main function are protected by global OH.

It seems that the functions are skipped too early, even though some of the instructions can be input independent!

https://github.com/tum-i22/sip-oblivious-hashing/blob/88fd02b215fe4e89794752829d809beed0e0157b/src/ObliviousHashInsertion.cpp#L1561-L1564

dennisfischer commented 6 years ago

Possibly related seem these lines. It appears that if SROH is used, then no global OH is applied. Of course, SROH might call some functions which I'm not to see in my limitted time that then add global OH too.

https://github.com/tum-i22/sip-oblivious-hashing/blob/88fd02b215fe4e89794752829d809beed0e0157b/src/ObliviousHashInsertion.cpp#L1529-L1538