aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/md5.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2008-03-04 08:00:34 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-03-04 08:00:34 -0800
commita6c0e1f71d37b89c883d636eca48a017c055c8c4 (patch)
tree58e58534340551eefbf4c5f3467dc10c20410381 /fs/cifs/md5.c
parent13b1c3d4b49bd83d861c775ca2db54e1692a1b07 (diff)
parent966ea8c4b74aa6fde2d58c50a904619fd849ae93 (diff)
downloadkernel_samsung_smdk4412-a6c0e1f71d37b89c883d636eca48a017c055c8c4.zip
kernel_samsung_smdk4412-a6c0e1f71d37b89c883d636eca48a017c055c8c4.tar.gz
kernel_samsung_smdk4412-a6c0e1f71d37b89c883d636eca48a017c055c8c4.tar.bz2
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: [CIFS] remove unused variable [CIFS] consolidate duplicate code in posix/unix inode handling [CIFS] fix build break when proc disabled [CIFS] factoring out common code in get_inode_info functions [CIFS] fix prepath conversion when server supports posix paths [CIFS] Only convert / when server does not support posix paths [CIFS] Fix mixed case name in structure dfs_info3_param [CIFS] fixup prefixpaths which contain multiple path components [CIFS] fix typo [CIFS] patch to fix incorrect encoding of number of aces on set mode [CIFS] Fix typo in quota operations [CIFS] clean up some hard to read ifdefs [CIFS] reduce checkpatch warnings [CIFS] fix warning in cifs_spnego.c
Diffstat (limited to 'fs/cifs/md5.c')
-rw-r--r--fs/cifs/md5.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/cifs/md5.c b/fs/cifs/md5.c
index f13f96d..462bbfe 100644
--- a/fs/cifs/md5.c
+++ b/fs/cifs/md5.c
@@ -161,7 +161,7 @@ MD5Final(unsigned char digest[16], struct MD5Context *ctx)
/* This is the central step in the MD5 algorithm. */
#define MD5STEP(f, w, x, y, z, data, s) \
- ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
+ (w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x)
/*
* The core of the MD5 algorithm, this alters an existing MD5 hash to
@@ -302,9 +302,8 @@ hmac_md5_init_limK_to_64(const unsigned char *key, int key_len,
int i;
/* if key is longer than 64 bytes truncate it */
- if (key_len > 64) {
+ if (key_len > 64)
key_len = 64;
- }
/* start out by storing key in pads */
memset(ctx->k_ipad, 0, sizeof(ctx->k_ipad));
@@ -359,9 +358,9 @@ hmac_md5(unsigned char key[16], unsigned char *data, int data_len,
{
struct HMACMD5Context ctx;
hmac_md5_init_limK_to_64(key, 16, &ctx);
- if (data_len != 0) {
+ if (data_len != 0)
hmac_md5_update(data, data_len, &ctx);
- }
+
hmac_md5_final(digest, &ctx);
}
#endif