From 8f4ac01544b44bdd906d241e4f203de7496e5ac8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 10 Aug 2014 13:38:34 +0200 Subject: updated for version 7.4.399 Problem: Encryption implementation is messy. Blowfish encryption has a weakness. Solution: Refactor the encryption, store the state in an allocated struct instead of using a save/restore mechanism. Introduce the "blowfish2" method, which does not have the weakness and encrypts the whole undo file. (largely by David Leadbeater) --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 9c92f7a84..2fb2edcb5 100644 --- a/src/main.c +++ b/src/main.c @@ -846,8 +846,7 @@ vim_main2(int argc UNUSED, char **argv UNUSED) #ifdef FEAT_CRYPT if (params.ask_for_key) { - (void)blowfish_self_test(); - (void)get_crypt_key(TRUE, TRUE); + (void)crypt_get_key(TRUE, TRUE); TIME_MSG("getting crypt key"); } #endif -- cgit v1.2.1