diff options
Diffstat (limited to 'src/libcryptobox/curve25519')
-rw-r--r-- | src/libcryptobox/curve25519/curve25519.c | 5 | ||||
-rw-r--r-- | src/libcryptobox/curve25519/curve25519.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libcryptobox/curve25519/curve25519.c b/src/libcryptobox/curve25519/curve25519.c index 220a1da13..62a253069 100644 --- a/src/libcryptobox/curve25519/curve25519.c +++ b/src/libcryptobox/curve25519/curve25519.c @@ -119,7 +119,7 @@ curve25519_test_impl (const curve25519_impl_t *impl) return TRUE; } -void +const char* curve25519_load (void) { guint i; @@ -132,7 +132,10 @@ curve25519_load (void) } } } + g_assert (curve25519_test_impl (curve25519_opt)); + + return curve25519_opt->desc; } int diff --git a/src/libcryptobox/curve25519/curve25519.h b/src/libcryptobox/curve25519/curve25519.h index 8ea440b40..8b404f5c6 100644 --- a/src/libcryptobox/curve25519/curve25519.h +++ b/src/libcryptobox/curve25519/curve25519.h @@ -8,6 +8,6 @@ static const guchar curve25519_basepoint[32] = {9}; int curve25519 (guchar *mypublic, const guchar *secret, const guchar *basepoint); /* Call for optimized implementation of scalarmult if needed */ int curve25519_base (guchar *mypublic, const guchar *secret); -void curve25519_load (void); +const char* curve25519_load (void); #endif |