summaryrefslogtreecommitdiff
path: root/cipher/sha1.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2000-10-04 11:16:18 +0000
committerWerner Koch <wk@gnupg.org>2000-10-04 11:16:18 +0000
commit03998985fc9c3375a52a0e7c336da5bee951310f (patch)
treed63f3f0431f1f84ba0fd49c3c8c650fd29016f56 /cipher/sha1.c
parentc6b6080aabd9cbaf5dbc77e9d23536a7c2de37ed (diff)
downloadlibgcrypt-03998985fc9c3375a52a0e7c336da5bee951310f.tar.gz
See ChangeLog: Wed Oct 4 13:16:18 CEST 2000 Werner Koch
Diffstat (limited to 'cipher/sha1.c')
-rw-r--r--cipher/sha1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/sha1.c b/cipher/sha1.c
index aa3ac092..a0438dbd 100644
--- a/cipher/sha1.c
+++ b/cipher/sha1.c
@@ -108,7 +108,7 @@ transform( SHA1_CONTEXT *hd, byte *data )
#define M(i) ( tm = x[i&0x0f] ^ x[(i-14)&0x0f] \
^ x[(i-8)&0x0f] ^ x[(i-3)&0x0f] \
- , (x[i&0x0f] = (tm << 1) | (tm >> 31)) )
+ , (x[i&0x0f] = rol(tm, 1)) )
#define R(a,b,c,d,e,f,k,m) do { e += rol( a, 5 ) \
+ f( b, c, d ) \