aboutsummaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-09 18:39:23 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-11 16:12:33 -0400
commit4b19730c8234de3587bd50256fcb11660fb07388 (patch)
tree01a606ed8b66ea94ec482395b09c16762b9bc91a /changes
parent8a36f2125137dc31a0771a8eeac0f2bb8c1343d0 (diff)
downloadtor-4b19730c8234de3587bd50256fcb11660fb07388.tar.gz
tor-4b19730c8234de3587bd50256fcb11660fb07388.zip
Add a data-independent variant of memcmp and a d-i memeq function.
The tor_memcmp code is by Robert Ransom, and the tor_memeq code is by me. Both incorporate some ideas from DJB's stuff.
Diffstat (limited to 'changes')
-rw-r--r--changes/bug3122_memcmp7
1 files changed, 7 insertions, 0 deletions
diff --git a/changes/bug3122_memcmp b/changes/bug3122_memcmp
new file mode 100644
index 0000000000..a049476743
--- /dev/null
+++ b/changes/bug3122_memcmp
@@ -0,0 +1,7 @@
+ o Security fixes
+ - Replace all potentially sensitive memory comparison operations
+ with versions whose runtime does not depend on the data being
+ compared. This will help resist a class of attacks where an
+ adversary can use variations in timing information to learn
+ sensitive data. Fix for one case of bug 3122. (Safe memcmp
+ implementation by Robert Ransom based partially on code by DJB.)