diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-20 08:31:19 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-20 08:31:19 -0300 |
commit | 0aa8b5828cc0674894681841f40c3c05bfd2f07b (patch) | |
tree | 1a14dcf2a4aa6c5276a4ea7802f4cbe576e9a6e3 /src/nvim/sha256.c | |
parent | 32d018b57edbc75d6a70c5cd3e8012d7f924f460 (diff) | |
parent | 85338fe1d5a56f82546e16c305c2048c081771e0 (diff) | |
download | rneovim-0aa8b5828cc0674894681841f40c3c05bfd2f07b.tar.gz rneovim-0aa8b5828cc0674894681841f40c3c05bfd2f07b.tar.bz2 rneovim-0aa8b5828cc0674894681841f40c3c05bfd2f07b.zip |
Merge pull request #699 'Remove cryptography'
Diffstat (limited to 'src/nvim/sha256.c')
-rw-r--r-- | src/nvim/sha256.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nvim/sha256.c b/src/nvim/sha256.c index 549448a6e0..4a61ddc66f 100644 --- a/src/nvim/sha256.c +++ b/src/nvim/sha256.c @@ -9,7 +9,6 @@ /// /// Vim specific notes: /// Functions exported by this file: -/// 1. sha256_key() hashes the password to 64 bytes char string. /// 2. sha2_seed() generates a random header. /// sha256_self_test() is implicitly called once. @@ -284,23 +283,6 @@ char_u *sha256_bytes(char_u *buf, int buf_len, char_u *salt, int salt_len) return hexit; } -/// Gets sha256(buf) as 64 hex characters in a static array. -/// -/// @param buf -/// @param salt -/// @param salt_len -/// -/// @returns sha256(buf) as 64 hex chars in static array. -char_u* sha256_key(char_u *buf, char_u *salt, int salt_len) -{ - // No passwd means don't encrypt - if ((buf == NULL) || (*buf == NUL)) { - return (char_u *)""; - } - - return sha256_bytes(buf, (int)STRLEN(buf), salt, salt_len); -} - // These are the standard FIPS-180-2 test vectors static char *sha_self_test_msg[] = { "abc", |