diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-04 13:11:11 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-11-04 13:11:11 +0100 |
| commit | 58ead6a9a4a2a81f067ad698366bd32841346058 (patch) | |
| tree | 72398158aa8a077b48a9116dbbff629d340208af /libcmix-crypto/curve25519/curve25519.c | |
| parent | 837d8336fb5323ff797cbcbce17a05a3838e051f (diff) | |
| download | cmix-58ead6a9a4a2a81f067ad698366bd32841346058.tar.gz cmix-58ead6a9a4a2a81f067ad698366bd32841346058.tar.bz2 cmix-58ead6a9a4a2a81f067ad698366bd32841346058.zip | |
Consolidated all the crypto apis and implemented the Precomputation Postprocessing step
Diffstat (limited to 'libcmix-crypto/curve25519/curve25519.c')
| -rw-r--r-- | libcmix-crypto/curve25519/curve25519.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/libcmix-crypto/curve25519/curve25519.c b/libcmix-crypto/curve25519/curve25519.c index db77d9a..a963840 100644 --- a/libcmix-crypto/curve25519/curve25519.c +++ b/libcmix-crypto/curve25519/curve25519.c @@ -5,22 +5,23 @@ struct Api get_curve25519_implementation() { curve25519_initialize(); return (struct Api) { - &curve25519_initialize, - &curve25519_create_keypair, - &curve25519_keypair_deleter, - &curve25519_key_to_array, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - &curve25519_add_public_share, - &curve25519_derive_shared_key, - &curve25519_shared_key_deleter, - NULL, - &curve25519_deinitialize + .initialize = curve25519_initialize, + .create_keypair = curve25519_create_keypair, + .free_keypair = curve25519_delete_keypair, + .element_to_array = curve25519_element_to_array, + .free_buffer = curve25519_free_buffer, + .array_to_element = curve25519_array_to_element, + .get_group_element = curve25519_get_group_element, + .get_group_element_array_size = curve25519_get_group_element_array_size, + .free_group_element = curve25519_delete_group_element, + .get_key_exchange_value = curve25519_get_key_exchange_value, + .multiply = curve25519_multiply, + .get_decryption_share = curve25519_get_decryption_share, + .add_public_share = curve25519_add_public_share, + .derive_shared_key = curve25519_derive_shared_key, + .free_shared_key = curve25519_delete_shared_key, + .encrypt = curve25519_encrypt, + .deinitialize = curve25519_deinitialize }; } |
