aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/sober128.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2017-02-01 13:12:01 +0100
committerPeter Wu <peter@lekensteyn.nl>2017-02-02 21:13:55 +0000
commit7893ffa478bdbd4cd48aa438569a0bd32fada99b (patch)
tree4be67fc33e3c79dbe093a9b5383501082ed321fe /wsutil/sober128.h
parentf15d5dde0b5cc0532b70279e7a7492fafe94ed3c (diff)
wsutil/sober128: remove unused macros and functions
Removed unused macros/functions that are apparently imported from LibTomCrypt, only LOAD32L and STORE32L are needed. Remove code that tries to distinguish between little/big endian, since WORDS_BIGENDIAN was never defined, this would never have worked on big endian anyway. Remove the special ROR "optimization" for GCC on i386, modern compilers are able to optimize it to exactly the same thing. The generic LOAD32L/STORE32L macros are less optimized (as can be seen in the generated code), but this was not noticable in the mean running time. Tested with the packet capture from bug 3232, the result is the same: tshark -ocorosync_totemnet.private_keys:example.com -r corosync-totemsrp--key:example.com--2nodes.pcap -Vx Bug: 13368 Change-Id: I59bf27d7dd990bbcd5ad34a1797f4a6c8a04512d Reviewed-on: https://code.wireshark.org/review/19894 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'wsutil/sober128.h')
-rw-r--r--wsutil/sober128.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/sober128.h b/wsutil/sober128.h
index 04619fe9b1..acb7a46cf1 100644
--- a/wsutil/sober128.h
+++ b/wsutil/sober128.h
@@ -3,7 +3,7 @@
from LibTomCrypt.
The latest version of the original code can be found at
- http://libtom.org/?page=features according to which this code is in the
+ http://www.libtom.net/LibTomCrypt/ according to which this code is in the
Public Domain
*/
@@ -17,7 +17,7 @@
* The library is free for all purposes without any express
* guarantee it works.
*
- * Tom St Denis, tomstdenis@iahu.ca, http://libtom.org/?page=features
+ * Tom St Denis, tomstdenis@iahu.ca, http://www.libtom.net/LibTomCrypt/
*/
#ifndef _SOBER127_H