]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - crypt.h
Merge topic branch t/sf_float into pu
[paraslash.git] / crypt.h
diff --git a/crypt.h b/crypt.h
index 6507099507b1eb336fc9509732099319884665ca..2e094ced9ee760ced8a7647217a5046bc58e0c20 100644 (file)
--- a/crypt.h
+++ b/crypt.h
@@ -31,7 +31,7 @@ int apc_pub_encrypt(struct asymmetric_key *pub, unsigned char *inbuf,
  * Decrypt a buffer using a private key.
  *
  * \param key_file Full path of the key.
- * \param outbuf The output buffer.
+ * \param outbuf The output buffer is allocated by the callee.
  * \param inbuf The encrypted input buffer.
  * \param inlen The length of \a inbuf.
  *
@@ -39,7 +39,7 @@ int apc_pub_encrypt(struct asymmetric_key *pub, unsigned char *inbuf,
  *
  * \return The size of the recovered plaintext on success, negative on errors.
  */
-int apc_priv_decrypt(const char *key_file, unsigned char *outbuf,
+int apc_priv_decrypt(const char *key_file, unsigned char **outbuf,
                unsigned char *inbuf, int inlen);
 
 /**