summaryrefslogtreecommitdiff
path: root/src/blowfish.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-14 16:52:17 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-14 16:52:17 +0200
commitcc448b373d580856f92ff7a9e04daf65444b5cd1 (patch)
tree3cb827a7aa56a93acea0a1201d5754ebcca9b808 /src/blowfish.c
parentd43848c0dd0603248405bb93364866cd495f0547 (diff)
downloadvim-git-cc448b373d580856f92ff7a9e04daf65444b5cd1.tar.gz
Support completion for ":find". (Nazri Ramliy)
Cleanup white space.
Diffstat (limited to 'src/blowfish.c')
-rw-r--r--src/blowfish.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/blowfish.c b/src/blowfish.c
index 78e56991b..ff84ccceb 100644
--- a/src/blowfish.c
+++ b/src/blowfish.c
@@ -421,7 +421,7 @@ bf_key_init(password, salt, salt_len)
* See http://en.wikipedia.org/wiki/Key_strengthening. */
key = sha256_key(password, salt, salt_len);
for (i = 0; i < 1000; i++)
- key = sha256_key(key, salt, salt_len);
+ key = sha256_key(key, salt, salt_len);
/* Convert the key from 64 hex chars to 32 binary chars. */
keylen = (int)STRLEN(key) / 2;
@@ -432,8 +432,8 @@ bf_key_init(password, salt, salt_len)
}
for (i = 0; i < keylen; i++)
{
- sscanf((char *)&key[i * 2], "%2x", &j);
- key[i] = j;
+ sscanf((char *)&key[i * 2], "%2x", &j);
+ key[i] = j;
}
mch_memmove(sbx, sbi, 4 * 4 * 256);
@@ -534,7 +534,7 @@ bf_self_test()
for (i = 0; i < bn; i++)
{
bf_key_init((char_u *)(bf_test_data[i].password),
- bf_test_data[i].salt,
+ bf_test_data[i].salt,
(int)STRLEN(bf_test_data[i].salt));
if (!bf_check_tables(pax, sbx, bf_test_data[i].keysum))
err++;