summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-05-07 02:13:23 +0000
committerNick Mathewson <nickm@torproject.org>2003-05-07 02:13:23 +0000
commitd0ff485e1b36e07d1edecdc6c454d636dea99061 (patch)
tree58542df3aabc3430143d1b22320885df116c137d /src/common/crypto.h
parent3416a106273b419eda949febe70aa23b15af4ac5 (diff)
downloadtor-d0ff485e1b36e07d1edecdc6c454d636dea99061.tar.gz
tor-d0ff485e1b36e07d1edecdc6c454d636dea99061.zip
More work on directories. Signed directories not yet tested. No support for checking sigs yet
svn:r268
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index af0cc904c2..d5cfdb55e1 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -64,6 +64,11 @@ int crypto_pk_keysize(crypto_pk_env_t *env);
int crypto_pk_public_encrypt(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to, int padding);
int crypto_pk_private_decrypt(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to, int padding);
+int crypto_pk_private_sign(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to);
+int crypto_pk_private_checksig(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to);
+
+int base64_encode(char *dest, int destlen, char *src, int srclen);
+int base64_decode(char *dest, int destlen, char *src, int srclen);
/* Key negotiation */
typedef struct crypto_dh_env_st crypto_dh_env_t;