summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-28 17:38:22 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-25 11:58:13 -0400
commite84e1c97458a7b0f449b6689caa0b3da2853f471 (patch)
treef2c4df982535a07a4cbab6aa79c4efb8188afab4 /src/common/crypto.h
parente72a5b3c070451e7762b1d22553cf077c50eb123 (diff)
downloadtor-e84e1c97458a7b0f449b6689caa0b3da2853f471.tar.gz
tor-e84e1c97458a7b0f449b6689caa0b3da2853f471.zip
More generic passphrase hashing code, including scrypt support
Uses libscrypt when found; otherwise, we don't have scrypt and we only support openpgp rfc2440 s2k hashing, or pbkdf2. Includes documentation and unit tests; coverage around 95%. Remaining uncovered code is sanity-checks that shouldn't be reachable fwict.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index ba6fe84f0d..39bbdb5717 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -280,13 +280,6 @@ int digest_from_base64(char *digest, const char *d64);
int digest256_to_base64(char *d64, const char *digest);
int digest256_from_base64(char *digest, const char *d64);
-/** Length of RFC2440-style S2K specifier: the first 8 bytes are a salt, the
- * 9th describes how much iteration to do. */
-#define S2K_RFC2440_SPECIFIER_LEN 9
-void secret_to_key_rfc2440(
- char *key_out, size_t key_out_len, const char *secret,
- size_t secret_len, const char *s2k_specifier);
-
/** OpenSSL-based utility functions. */
void memwipe(void *mem, uint8_t byte, size_t sz);