aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sha256.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-05-07 18:04:54 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-20 08:31:06 -0300
commit85338fe1d5a56f82546e16c305c2048c081771e0 (patch)
tree1a14dcf2a4aa6c5276a4ea7802f4cbe576e9a6e3 /src/nvim/sha256.c
parent32d018b57edbc75d6a70c5cd3e8012d7f924f460 (diff)
downloadrneovim-85338fe1d5a56f82546e16c305c2048c081771e0.tar.gz
rneovim-85338fe1d5a56f82546e16c305c2048c081771e0.tar.bz2
rneovim-85338fe1d5a56f82546e16c305c2048c081771e0.zip
Remove cryptography
As discussed in #694, vim encryption uses old, obsolete algorithms that are poorly implemented. Since insecure cryptography is worse than no cryptgraphy, the community voted in favor of removing all crypto. Various alternatives to the old crypto is being discussed in #701. Closes #694.
Diffstat (limited to 'src/nvim/sha256.c')
-rw-r--r--src/nvim/sha256.c18
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",