diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-30 13:38:49 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-10-30 16:37:03 +0100 |
| commit | a3e62d3bc6e7f75949726f9a8dafe03e757e869b (patch) | |
| tree | 49e59076a7ffd7ea757f650a64aaba2b16be1886 /libcmix-crypto/curve25519 | |
| parent | 158bf81343054982800d44d507e8e50f2eeb6dd4 (diff) | |
| download | cmix-a3e62d3bc6e7f75949726f9a8dafe03e757e869b.tar.gz cmix-a3e62d3bc6e7f75949726f9a8dafe03e757e869b.tar.bz2 cmix-a3e62d3bc6e7f75949726f9a8dafe03e757e869b.zip | |
Added the Preprocessing step for the Precomputation of CMix.
Diffstat (limited to 'libcmix-crypto/curve25519')
| -rw-r--r-- | libcmix-crypto/curve25519/curve25519.c | 5 | ||||
| -rw-r--r-- | libcmix-crypto/curve25519/curve25519.h | 2 | ||||
| -rw-r--r-- | libcmix-crypto/curve25519/sodium/libsodium_curve25519.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/libcmix-crypto/curve25519/curve25519.c b/libcmix-crypto/curve25519/curve25519.c index 0036808..1a83308 100644 --- a/libcmix-crypto/curve25519/curve25519.c +++ b/libcmix-crypto/curve25519/curve25519.c @@ -8,13 +8,16 @@ struct Api get_curve25519_implementation() &curve25519_initialize, &curve25519_create_keypair, &curve25519_keypair_deleter, - &curve25519_get_key_array, + &curve25519_key_to_array, + NULL, + NULL, NULL, NULL, NULL, &curve25519_add_public_share, &curve25519_derive_shared_key, &curve25519_shared_key_deleter, + NULL, &curve25519_deinitialize }; } diff --git a/libcmix-crypto/curve25519/curve25519.h b/libcmix-crypto/curve25519/curve25519.h index 2dc2e48..9b65d4e 100644 --- a/libcmix-crypto/curve25519/curve25519.h +++ b/libcmix-crypto/curve25519/curve25519.h @@ -33,7 +33,7 @@ extern void curve25519_keypair_deleter(struct KeyPair* p); * \param buffer * \param len */ -extern void curve25519_get_key_array(char** buffer, size_t* len, void* pubkey); +extern void curve25519_key_to_array(unsigned char** buffer, size_t* len, void* pubkey); /*! * \brief curve25519_add_public_share diff --git a/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c b/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c index 0fbd387..6c3fe13 100644 --- a/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c +++ b/libcmix-crypto/curve25519/sodium/libsodium_curve25519.c @@ -39,7 +39,7 @@ void curve25519_shared_key_deleter(struct SharedKey* s) { s->shared = NULL; } -void curve25519_get_key_array(char** buffer, size_t* len, void* key) { +void curve25519_key_to_array(unsigned char** buffer, size_t* len, void* key) { } |
