summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-02-11 15:23:32 +0100
committerBram Moolenaar <Bram@vim.org>2014-02-11 15:23:32 +0100
commit4d504a3e11c42ca1f7ad29848b943eb1537283cb (patch)
tree7e88578e269d2e34990859020c15042223351966 /src/fileio.c
parent0a36fece9234d423aa5e35a8df1e33b3f79e9ede (diff)
updated for version 7.4.172v7.4.172
Problem: The blowfish code mentions output feedback, but the code is actually doing cipher feedback. Solution: Adjust names and comments.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index cb22bd31d4..0c1ff62ab2 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2973,7 +2973,7 @@ check_for_cryptkey(cryptkey, ptr, sizep, filesizep, newfile, fname, did_ask)
else
{
bf_key_init(cryptkey, ptr + CRYPT_MAGIC_LEN, salt_len);
- bf_ofb_init(ptr + CRYPT_MAGIC_LEN + salt_len, seed_len);
+ bf_cfb_init(ptr + CRYPT_MAGIC_LEN + salt_len, seed_len);
}
/* Remove magic number from the text */
@@ -3025,7 +3025,7 @@ prepare_crypt_read(fp)
if (fread(buffer, salt_len + seed_len, 1, fp) != 1)
return FAIL;
bf_key_init(curbuf->b_p_key, buffer, salt_len);
- bf_ofb_init(buffer + salt_len, seed_len);
+ bf_cfb_init(buffer + salt_len, seed_len);
}
return OK;
}
@@ -3064,7 +3064,7 @@ prepare_crypt_write(buf, lenp)
seed = salt + salt_len;
sha2_seed(salt, salt_len, seed, seed_len);
bf_key_init(buf->b_p_key, salt, salt_len);
- bf_ofb_init(seed, seed_len);
+ bf_cfb_init(seed, seed_len);
}
}
*lenp = CRYPT_MAGIC_LEN + salt_len + seed_len;