From 0b1150d20f49eb0ec82b57ab3fac727f346c0da0 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 24 Apr 2018 12:01:36 +0300 Subject: libs: updated libsignal-c protocols: jabber: omemo: used 31bit device id instead of 32bit (32bit conflicts with conversations, not xep compliant) --- libs/libaxolotl/src/curve.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 libs/libaxolotl/src/curve.h (limited to 'libs/libaxolotl/src/curve.h') diff --git a/libs/libaxolotl/src/curve.h b/libs/libaxolotl/src/curve.h old mode 100644 new mode 100755 index 9401f88033..18628e8dfb --- 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); -- cgit v1.2.3