diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2015-02-26 21:07:01 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2015-02-27 14:06:17 +0900 |
commit | 6636c4fd0c6ceab9f79827bf96967d1e112c0b82 (patch) | |
tree | 0565b26e25d95988b6d8d33cbe924bedd286b079 /tests | |
parent | 1fa8cdb933505960d4e4b4842b122d4e06953e88 (diff) | |
download | libgcrypt-6636c4fd0c6ceab9f79827bf96967d1e112c0b82.tar.gz |
mpi: Avoid data-dependent timing variations in mpi_powm.
* mpi/mpi-pow.c (mpi_powm): Access all data in the table by
mpi_set_cond.
--
Access to the precomputed table was indexed by a portion of EXPO,
which could be mounted by a side channel attack. This change fixes
this particular data-dependent access pattern.
Cherry-picked from commit 5e72b6c76ebee720f69b8a5c212f52d38eb50287
in LIBGCRYPT-1-6-BRANCH.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions