diff options
Diffstat (limited to 'libcmix-crypto/curve25519')
| -rw-r--r-- | libcmix-crypto/curve25519/null/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | libcmix-crypto/curve25519/sodium/libsodium_curve25519.c | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/libcmix-crypto/curve25519/null/CMakeLists.txt b/libcmix-crypto/curve25519/null/CMakeLists.txt index 25c0d3b..eb13fdf 100644 --- a/libcmix-crypto/curve25519/null/CMakeLists.txt +++ b/libcmix-crypto/curve25519/null/CMakeLists.txt @@ -6,6 +6,10 @@ add_library(${target_name} SHARED null_curve25519.c ) +target_compile_options(${target_name} + PRIVATE -Wno-unused-parameter +) + target_link_libraries(${target_name} PRIVATE curve25519-interface ) 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; |
