This is an automated email from the ASF dual-hosted git repository. kmccusker pushed a commit to branch issue66 in repository https://gitbox.apache.org/repos/asf/incubator-milagro-crypto-c.git
commit dfad8648cac8ec68164f7b15e229cfa3a16a208e Author: Kealan McCusker <[email protected]> AuthorDate: Thu Jan 9 15:30:40 2020 +0000 Add header wrapper to paillier --- include/paillier.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/paillier.h b/include/paillier.h index ce6e2cc..a5928dc 100644 --- a/include/paillier.h +++ b/include/paillier.h @@ -23,6 +23,9 @@ under the License. * */ +#ifndef PAILLIER_H +#define PAILLIER_H + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -30,6 +33,10 @@ under the License. #include "ff_4096.h" #include "ff_2048.h" +#ifdef __cplusplus +extern "C" { +#endif + // Field size #define FS_4096 MODBYTES_512_60*FFLEN_4096 /**< 4096 field size in bytes */ #define FS_2048 MODBYTES_1024_58*FFLEN_2048 /**< 2048 field size in bytes */ @@ -175,3 +182,9 @@ void PAILLIER_PK_fromOctet(PAILLIER_public_key *PUB, octet *PK); * @param PUB Public key */ void PAILLIER_PK_toOctet(octet *PK, PAILLIER_public_key *PUB); + +#ifdef __cplusplus +} +#endif + +#endif
