diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-16 22:32:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-16 22:32:54 +0200 |
commit | 40e6a71c6777242a254f1748766aa0e60764ebb3 (patch) | |
tree | 84774ebf0fd3986a456cebd716d847d4e8496a20 /src/proto | |
parent | 64486671c3fcc75698c57732c50865ad0573b3fe (diff) |
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/blowfish.pro | 7 | ||||
-rw-r--r-- | src/proto/misc2.pro | 3 | ||||
-rw-r--r-- | src/proto/sha256.pro | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/proto/blowfish.pro b/src/proto/blowfish.pro new file mode 100644 index 0000000000..6b6628742c --- /dev/null +++ b/src/proto/blowfish.pro @@ -0,0 +1,7 @@ +/* blowfish.c */ +void bf_key_init __ARGS((char_u *password)); +void bf_ofb_init __ARGS((char_u *iv, int iv_len)); +void bf_ofb_update __ARGS((int c)); +int bf_ranbyte __ARGS((void)); +int blowfish_self_test __ARGS((void)); +/* vim: set ft=c : */ diff --git a/src/proto/misc2.pro b/src/proto/misc2.pro index 5c4cc42100..9b27b7e3d1 100644 --- a/src/proto/misc2.pro +++ b/src/proto/misc2.pro @@ -81,8 +81,9 @@ char_u *parse_shape_opt __ARGS((int what)); int get_shape_idx __ARGS((int mouse)); void update_mouseshape __ARGS((int shape_idx)); int decrypt_byte __ARGS((void)); -int update_keys __ARGS((int c)); +void update_keys __ARGS((int c)); void crypt_init_keys __ARGS((char_u *passwd)); +void free_crypt_key __ARGS((char_u *key)); char_u *get_crypt_key __ARGS((int store, int twice)); void *vim_findfile_init __ARGS((char_u *path, char_u *filename, char_u *stopdirs, int level, int free_visited, int find_what, void *search_ctx_arg, int tagfile, char_u *rel_fname)); char_u *vim_findfile_stopdir __ARGS((char_u *buf)); diff --git a/src/proto/sha256.pro b/src/proto/sha256.pro new file mode 100644 index 0000000000..635721c8c1 --- /dev/null +++ b/src/proto/sha256.pro @@ -0,0 +1,5 @@ +/* sha256.c */ +char *sha256_key __ARGS((char *buf)); +int sha256_self_test __ARGS((void)); +void sha2_seed __ARGS((char_u header[], int header_len)); +/* vim: set ft=c : */ |