mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
updated for version 7.3.816
Problem: Can't compute a hash. Solution: Add the sha256() function. (Tyru, Hirohito Higashi)
This commit is contained in:
@@ -273,14 +273,13 @@ sha256_finish(ctx, digest)
|
||||
#endif /* FEAT_CRYPT || FEAT_PERSISTENT_UNDO */
|
||||
|
||||
#if defined(FEAT_CRYPT) || defined(PROTO)
|
||||
static char_u *sha256_bytes __ARGS((char_u *buf, int buf_len, char_u *salt, int salt_len));
|
||||
static unsigned int get_some_time __ARGS((void));
|
||||
|
||||
/*
|
||||
* Returns hex digest of "buf[buf_len]" in a static array.
|
||||
* if "salt" is not NULL also do "salt[salt_len]".
|
||||
*/
|
||||
static char_u *
|
||||
char_u *
|
||||
sha256_bytes(buf, buf_len, salt, salt_len)
|
||||
char_u *buf;
|
||||
int buf_len;
|
||||
|
Reference in New Issue
Block a user