diff options
Diffstat (limited to 'crypto.c')
-rw-r--r-- | crypto.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -20,15 +20,15 @@ * @author Markus Teich */ -#include "brandt_config.h" +#include "platform.h" -#include <arpa/inet.h> #include <gcrypt.h> #include "crypto.h" #include "internals.h" #include "util.h" + #define CURVE "Ed25519" @@ -377,7 +377,7 @@ ec_point_parse (gcry_mpi_point_t dst, const struct ec_mpi *src) * @param[in,out] dst The 1 dimensional array to clean up * @param[in] size1 size of the first dimension */ -static void +void smc_free1 (gcry_mpi_point_t *dst, uint16_t size1) { if (NULL == dst) @@ -399,7 +399,7 @@ smc_free1 (gcry_mpi_point_t *dst, uint16_t size1) * @return a pointer to the array or NULL on error. * If not used anymore use smc_free2 to reclaim the memory. */ -static gcry_mpi_point_t * +gcry_mpi_point_t * smc_init1 (uint16_t size1) { gcry_mpi_point_t *ret; @@ -427,7 +427,7 @@ smc_init1 (uint16_t size1) * @param[in] size1 size of the first dimension * @param[in] size2 size of the second dimension */ -static void +void smc_free2 (gcry_mpi_point_t **dst, uint16_t size1, uint16_t size2) { if (NULL == dst) @@ -451,7 +451,7 @@ smc_free2 (gcry_mpi_point_t **dst, uint16_t size1, uint16_t size2) * @return a pointer to the array or NULL on error. * If not used anymore use smc_free2 to reclaim the memory. */ -static gcry_mpi_point_t ** +gcry_mpi_point_t ** smc_init2 (uint16_t size1, uint16_t size2) { gcry_mpi_point_t **ret; @@ -490,7 +490,7 @@ smc_init2 (uint16_t size1, uint16_t size2) * @param[in] size2 size of the second dimension * @param[in] size3 size of the third dimension */ -static void +void smc_free3 (gcry_mpi_point_t ***dst, uint16_t size1, uint16_t size2, @@ -519,7 +519,7 @@ smc_free3 (gcry_mpi_point_t ***dst, * @return a pointer to the array or NULL on error. * If not used anymore use smc_free3 to reclaim the memory. */ -static gcry_mpi_point_t *** +gcry_mpi_point_t *** smc_init3 (uint16_t size1, uint16_t size2, uint16_t size3) { gcry_mpi_point_t ***ret; |