From 347fe449fe818f97e0f3ba29dd0a08ff6d39081e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 31 Jul 2015 11:21:34 -0400 Subject: Move formatting functions around. The base64 and base32 functions used to be in crypto.c; crypto_format.h had no header; some general-purpose functions were in crypto_curve25519.c. This patch makes a {crypto,util}_format.[ch], and puts more functions there. Small modules are beautiful! --- src/common/crypto_curve25519.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/common/crypto_curve25519.h') diff --git a/src/common/crypto_curve25519.h b/src/common/crypto_curve25519.h index d53743986c..d868b3918b 100644 --- a/src/common/crypto_curve25519.h +++ b/src/common/crypto_curve25519.h @@ -72,18 +72,6 @@ int curve25519_public_from_base64(curve25519_public_key_t *pkey, int curve25519_public_to_base64(char *output, const curve25519_public_key_t *pkey); -int crypto_write_tagged_contents_to_file(const char *fname, - const char *typestring, - const char *tag, - const uint8_t *data, - size_t datalen); - -ssize_t crypto_read_tagged_contents_from_file(const char *fname, - const char *typestring, - char **tag_out, - uint8_t *data_out, - ssize_t data_out_len); - void curve25519_set_impl_params(int use_ed); void curve25519_init(void); -- cgit v1.2.3-54-g00ecf