aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto/curve25519/sodium
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-12 11:29:03 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-15 09:45:30 +0100
commit7568c9073143edfb3bc6c0bf4263be704cb96cb5 (patch)
treeb6c24648caaa813920c28d4b483fc320bf1567ed /libcmix-crypto/curve25519/sodium
parent8eef4dde28da8db00f32d4a7acd95ddbb728d138 (diff)
downloadcmix-7568c9073143edfb3bc6c0bf4263be704cb96cb5.tar.gz
cmix-7568c9073143edfb3bc6c0bf4263be704cb96cb5.tar.bz2
cmix-7568c9073143edfb3bc6c0bf4263be704cb96cb5.zip
Introduces and fixes warnings in the C libraries.
Diffstat (limited to 'libcmix-crypto/curve25519/sodium')
-rw-r--r--libcmix-crypto/curve25519/sodium/libsodium_curve25519.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c b/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c
index b4ae963..1bad378 100644
--- a/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c
+++ b/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c
@@ -40,14 +40,22 @@ void sodium_curve25519_shared_key_deleter(struct SharedKey* s) {
}
void sodium_curve25519_key_to_array(unsigned char** buffer, size_t* len, void* key) {
-
+ (void)buffer;
+ (void)len;
+ (void)key;
}
void sodium_curve25519_add_public_share(char** buffer, size_t* out_len, char const* share, size_t in_len, void* pubkey) {
-
+ (void) buffer;
+ (void) out_len;
+ (void) share;
+ (void) in_len;
+ (void) pubkey;
}
GroupElement sodium_curve25519_derive_shared_key(struct KeyPair pair, unsigned char const* other_pub, size_t pub_len, unsigned char const* value, size_t value_len, void* priv_value, bool swap_pub_order) {
+ (void) pub_len;
+ (void) value_len;
unsigned char* shared = (unsigned char*) sodium_malloc(crypto_generichash_BYTES);
crypto_generichash_state h;