summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/curve.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-24 12:01:36 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-24 12:01:36 +0300
commit0b1150d20f49eb0ec82b57ab3fac727f346c0da0 (patch)
tree387c1d63df86419dd92f2c6adef701567c6bf91f /libs/libaxolotl/src/curve.h
parent0998b447f51c40d2300db7f673e080de20e8f0be (diff)
libs:
updated libsignal-c protocols: jabber: omemo: used 31bit device id instead of 32bit (32bit conflicts with conversations, not xep compliant)
Diffstat (limited to 'libs/libaxolotl/src/curve.h')
-rwxr-xr-x[-rw-r--r--]libs/libaxolotl/src/curve.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/libaxolotl/src/curve.h b/libs/libaxolotl/src/curve.h
index 9401f88033..18628e8dfb 100644..100755
--- a/libs/libaxolotl/src/curve.h
+++ b/libs/libaxolotl/src/curve.h
@@ -12,6 +12,8 @@ extern "C" {
#define CURVE_SIGNATURE_LEN 64
#define VRF_SIGNATURE_LEN 96
+//int curve_internal_fast_tests(int silent);
+
int curve_decode_point(ec_public_key **public_key, const uint8_t *key_data, size_t key_len, signal_context *global_context);
int ec_public_key_compare(const ec_public_key *key1, const ec_public_key *key2);
int ec_public_key_memcmp(const ec_public_key *key1, const ec_public_key *key2);
@@ -124,7 +126,7 @@ void ec_public_key_list_free(ec_public_key_list *list);
* @param shared_key_data Set to a 32-byte shared secret on success.
* @param public_key The Curve25519 (typically remote party's) public key.
* @param private_key The Curve25519 (typically yours) private key.
- * @return 0 on success, negative on failure
+ * @return length of the shared secret on success, negative on failure
*/
int curve_calculate_agreement(uint8_t **shared_key_data, const ec_public_key *public_key, const ec_private_key *private_key);