flâneur — a map of the web's best reading

論文閱讀:Dude, is my code constant time? - HackMD

hackmd.io · 498 words · saved by 1 readers

# 論文閱讀:Dude, is my code constant time? [論文連結](https://eprint.iacr.org/2016/1123.pdf) [dudect Githu

論文閱讀:Dude, is my code constant time? - HackMD --- tags: 論文閱讀, C --- # 論文閱讀:Dude, is my code constant time? [論文連結](https://eprint.iacr.org/2016/1123.pdf) [dudect Github](https://github.com/oreparaz/dudect) ### Introduction [Side-channel attack](https://en.wikipedia.org/wiki/Side-channel_attack) 是一種利用系統實作上的特性,而不是用密碼學演算法本身的攻擊,其中 [Timing attacks](https://en.wikipedia.org/wiki/Timing_attack) 是其中一種很常見的手法,可以透過演算法的執行時間進而破解,舉例來說,一個判斷密碼是否正確的算法是從第一個字母開始逐一比對,一遇到不一樣的就馬上返回錯誤,那我們就可以透過多次嘗試,並觀察時間來判斷輸入是否正確。 現今也有一些評估的工具了,像是 `Valgrind` 的延伸 `ctgrind`,還有 `ctverif` 透過靜態的程式分析,但是有一些共同的缺陷是這些方法需要對硬體建模,但是困難的是 CPU 製造商通常不會

Explore this link on the map →

related reading