diff options
author | oni-link <knil.ino@gmail.com> | 2014-04-03 13:09:07 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-05 10:10:08 -0300 |
commit | ade0c127e56ff248039c60c3b29abcac24be1949 (patch) | |
tree | 9e3fa8d17b76f37a75fb89f6b5ee34cbd87309ee /src/fileio.c | |
parent | 26206d4cfddb0375b14c47ccf94c480a886f29a1 (diff) | |
download | rneovim-ade0c127e56ff248039c60c3b29abcac24be1949.tar.gz rneovim-ade0c127e56ff248039c60c3b29abcac24be1949.tar.bz2 rneovim-ade0c127e56ff248039c60c3b29abcac24be1949.zip |
vim-patch:7.4.172
Problem: The blowfish code mentions output feedback, but the code is
actually doing cipher feedback.
Solution: Adjust names and comments.
https://code.google.com/p/vim/source/detail?r=391e10afccf6879dcfab8b28cb1587a13eb835c0
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c index 6a693abfcd..4de33243b9 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2324,7 +2324,7 @@ check_for_cryptkey ( crypt_init_keys(cryptkey); 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 */ @@ -2373,7 +2373,7 @@ int prepare_crypt_read(FILE *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; } @@ -2407,7 +2407,7 @@ char_u *prepare_crypt_write(buf_T *buf, int *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; |