aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-01 22:10:33 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-01 22:10:33 +0000
commitcbbd13f789d49182e3302fd401d9393e3fc276a4 (patch)
treeeb31be788ac968e740afb78259b7995bec91bdde /src/common/crypto.h
parentcc8dc4e34c4035a8e26d84204ac19973ab06c76d (diff)
downloadtor-cbbd13f789d49182e3302fd401d9393e3fc276a4.tar
tor-cbbd13f789d49182e3302fd401d9393e3fc276a4.tar.gz
Add new functions to wrap digest and sign/checksig.
svn:r1436
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r--src/common/crypto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index a09a4deda..1ecd5a3de 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -58,7 +58,9 @@ 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_sign_digest(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to);
int crypto_pk_public_checksig(crypto_pk_env_t *env, unsigned char *from, int fromlen, unsigned char *to);
+int crypto_pk_public_checksig_digest(crypto_pk_env_t *env, unsigned char *data, int datalen, unsigned char *sig, int siglen);
int crypto_pk_public_hybrid_encrypt(crypto_pk_env_t *env, unsigned char *from,
int fromlen, unsigned char *to,
int padding);