diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-16 20:58:20 +0200 |
---|---|---|
committer | Markus Teich <markus.teich@stusta.mhn.de> | 2016-08-16 20:58:20 +0200 |
commit | fe7b13889217f4268d87d3712cb9ffe265e6a4e2 (patch) | |
tree | 59a17a13bdd9f22281bb0a59d8056675814a0cfd /crypto.c | |
parent | 01c2b8d710ff5a526d1ae2ed2a7fafdec0b1f973 (diff) |
some stuff
- finish BRANDT_destroy()
- fix include mess related to platform.h and brandt_config.h
- add first brandt.c testcase
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; |