On Wed, Mar 17, 2010 at 8:24 AM, Bram Moolenaar <[email protected]> wrote:
>
> Mohsin wrote:
>
>> Resending patch for current vim 72* dev branch (from cvs).
>> --
>>  Added functionality for encrypting files with blowfish and sha2.
>>  Blowfish is from http://www.schneier.com/blowfish.html
>>
>>  Older vim encrypted files with VimCrypt~1 header will still be
>>  readable by newer vim,
>>  but newly written files will have VimCrypt~2 in the header.
>>
>>  Algorithm: key=sha2(password), blowfish in Outputfeedback mode,
>>  with random 64bit init vector, so same file produces a completely
>>  different output, every time it is saved.
>>
>> Changes:
>>
>> Minor changes to fileio.c misc2.c, and 4 new files blowfish.c
>> blowfish.h sha2.c sha2.h
>> Patch is based on  vim DEV branch as of  2010-03-15
>
> Thanks.
>
> I would very much like feedback on this patch.  Any platform where this
> causes problems, such as compiler warnings?

This has been tested these on windows 32bits, linux 32bits,
and solaris 32 bits (big endian).

Windows XP 32 bit - MS Visual studio compiler 5.0 IDE,
no compiler warnings at warning level 3.

I can rerun ms-vc++ with warning level 4 sometime.

Also the the encrypted files are cross platform (as expected).

There are some unused functions and comments that you can
remove/edit as you wish.

---

thanks,
mohsin.

>
>
> --
> Proofread carefully to see if you any words out.
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\        download, build and distribute -- http://www.A-A-P.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
>

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui