From c62c06c08764cc5d2e9f246f525bcbf9b0c9ff8c Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Wed, 3 Aug 2011 18:21:49 +0200 Subject: [PATCH] Make prototypes single-line so my parser understands them --- firmware/basic/ecc.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/firmware/basic/ecc.h b/firmware/basic/ecc.h index d946cd3..05b1d3b 100644 --- a/firmware/basic/ecc.h +++ b/firmware/basic/ecc.h @@ -17,20 +17,16 @@ int bitstr_parse_export(char *exp, const char *s); void ECIES_setup(void); -void ECIES_encyptkeygen(uint8_t *px, uint8_t *py, - uint8_t k1[16], uint8_t k2[16], uint8_t *Rx_exp, uint8_t *Ry_exp); +void ECIES_encyptkeygen(uint8_t *px, uint8_t *py, uint8_t k1[16], uint8_t k2[16], uint8_t *Rx_exp, uint8_t *Ry_exp); -int ECIES_decryptkeygen(uint8_t *rx, uint8_t *ry, - uint8_t k1[16], uint8_t k2[16], const char *privkey); +int ECIES_decryptkeygen(uint8_t *rx, uint8_t *ry, uint8_t k1[16], uint8_t k2[16], const char *privkey); #define ECIES_OVERHEAD (8 * NUMWORDS + 8) /* ECIES encryption; the resulting cipher text message will be (len + ECIES_OVERHEAD) bytes long */ -void ECIES_encryption(char *msg, const char *text, int len, - const char *Px, const char *Py); +void ECIES_encryption(char *msg, const char *text, int len, const char *Px, const char *Py); /* ECIES decryption */ -int ECIES_decryption(char *text, const char *msg, int len, - const char *privkey); +int ECIES_decryption(char *text, const char *msg, int len, const char *privkey); #define MACRO(A) do { A; } while(0) #define MIN(a, b) ((a) < (b) ? (a) : (b))