aboutsummaryrefslogtreecommitdiff
path: root/security/mhash/files/patch-lib-gosthash.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/mhash/files/patch-lib-gosthash.c')
-rw-r--r--security/mhash/files/patch-lib-gosthash.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/security/mhash/files/patch-lib-gosthash.c b/security/mhash/files/patch-lib-gosthash.c
new file mode 100644
index 000000000000..adf09daa4e25
--- /dev/null
+++ b/security/mhash/files/patch-lib-gosthash.c
@@ -0,0 +1,42 @@
+diff -urN -x .svn ../../branches/vendor/mhash/lib/gosthash.c ./lib/gosthash.c
+--- ../../branches/vendor/mhash/lib/gosthash.c 2008-01-16 14:26:51.000000000 +0200
++++ ./lib/gosthash.c 2008-01-16 15:12:01.000000000 +0200
+@@ -273,22 +273,22 @@
+ */
+
+ #define GOST_ENCRYPT(key) \
+-GOST_ENCRYPT_ROUND(key[0], key[1]) \
+-GOST_ENCRYPT_ROUND(key[2], key[3]) \
+-GOST_ENCRYPT_ROUND(key[4], key[5]) \
+-GOST_ENCRYPT_ROUND(key[6], key[7]) \
+-GOST_ENCRYPT_ROUND(key[0], key[1]) \
+-GOST_ENCRYPT_ROUND(key[2], key[3]) \
+-GOST_ENCRYPT_ROUND(key[4], key[5]) \
+-GOST_ENCRYPT_ROUND(key[6], key[7]) \
+-GOST_ENCRYPT_ROUND(key[0], key[1]) \
+-GOST_ENCRYPT_ROUND(key[2], key[3]) \
+-GOST_ENCRYPT_ROUND(key[4], key[5]) \
+-GOST_ENCRYPT_ROUND(key[6], key[7]) \
+-GOST_ENCRYPT_ROUND(key[7], key[6]) \
+-GOST_ENCRYPT_ROUND(key[5], key[4]) \
+-GOST_ENCRYPT_ROUND(key[3], key[2]) \
+-GOST_ENCRYPT_ROUND(key[1], key[0]) \
++GOST_ENCRYPT_ROUND((key)[0], (key)[1]) \
++GOST_ENCRYPT_ROUND((key)[2], (key)[3]) \
++GOST_ENCRYPT_ROUND((key)[4], (key)[5]) \
++GOST_ENCRYPT_ROUND((key)[6], (key)[7]) \
++GOST_ENCRYPT_ROUND((key)[0], (key)[1]) \
++GOST_ENCRYPT_ROUND((key)[2], (key)[3]) \
++GOST_ENCRYPT_ROUND((key)[4], (key)[5]) \
++GOST_ENCRYPT_ROUND((key)[6], (key)[7]) \
++GOST_ENCRYPT_ROUND((key)[0], (key)[1]) \
++GOST_ENCRYPT_ROUND((key)[2], (key)[3]) \
++GOST_ENCRYPT_ROUND((key)[4], (key)[5]) \
++GOST_ENCRYPT_ROUND((key)[6], (key)[7]) \
++GOST_ENCRYPT_ROUND((key)[7], (key)[6]) \
++GOST_ENCRYPT_ROUND((key)[5], (key)[4]) \
++GOST_ENCRYPT_ROUND((key)[3], (key)[2]) \
++GOST_ENCRYPT_ROUND((key)[1], (key)[0]) \
+ t = r; \
+ r = l; \
+ l = t;