Slide 16
Slide 16 text
16
Linux man pageの警告
“
Do not use memcmp() to compare confidential data, such as cryptographic secrets, because
the CPU time required for the comparison depends on the contents of the addresses
compared, this function is subject to timing-based side-channel attacks.
(機密データ(暗号シークレットなど)の比較にmemcmp()を使用しないでくだ
さい。比較にかかるCPU時間は比較されるアドレスの内容に依存するため、こ
の関数はタイミングベースのサイドチャネル攻撃を受けやすいです。)