aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-06 22:05:49 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-06 22:05:49 +0000
commitf24519e4b9aeb39cbed50283936b86220c199e81 (patch)
tree4bc790ec74dc9ed9bd93efc24977468494d7113f /src/common/crypto.c
parent95f0e36f0818ba703731cf6e026fc4f9a4eaa9f7 (diff)
downloadtor-f24519e4b9aeb39cbed50283936b86220c199e81.tar
tor-f24519e4b9aeb39cbed50283936b86220c199e81.tar.gz
Set correct address and port mappings on outgoing rendezvous connections
svn:r1513
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index c6f5b5520..a6e57129d 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -529,13 +529,13 @@ int crypto_pk_private_sign_digest(crypto_pk_env_t *env, const unsigned char *fro
* The encrypted data consists of:
*
* The source data, padded and encrypted with the public key, if the
- * padded source data is no longer than the public key.
+ * padded source data is no longer than the public key, and "force"
+ * is false.
* OR
- * The beginning of the source data prefixed with a 16-symmetric key,
+ * The beginning of the source data prefixed with a 16-byte symmetric key,
* padded and encrypted with the public key; followed by the rest of
* the source data encrypted in AES-CTR mode with the symmetric key.
*
- * DOCDOC force.
*/
int crypto_pk_public_hybrid_encrypt(crypto_pk_env_t *env,
const unsigned char *from,