BitPunch McEliece  v0.0.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
version.h
Go to the documentation of this file.
1 /*
2  This file is part of BitPunch
3  Copyright (C) 2014-2015 Frantisek Uhrecky <frantisek.uhrecky[what here]gmail.com>
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
277  // mce initialisation t = 50, m = 11
278  if (BPU_mecsInitParamsGoppa(&params, 11, 50, 0)) {
279  return 1;
280  }
281  fprintf(stderr, "Basic GOPPA Initialisation...\n");
282  if (BPU_mecsInitCtx(&ctx, &params, BPU_EN_MECS_BASIC_GOPPA)) {
283  return 1;
284  }
285  BPU_mecsFreeCtx(&ctx);
286  BPU_mecsFreeParamsGoppa(&params);
287 
288  return rc;
289 }
290 \endverbatim
291 
292 We can see our registered test in the list of the tests:
293 - ./runTest -l
294 \verbatim
295 fruh@htfuws:~/projects/BitPunch$ ./runTest -l
296 Test: testMemRun runLevel: regular
297 Test: testFooName runLevel: regular
298 Test: testMemLeakWithH runLevel: regular
299 Test: testBuild runLevel: express
300 Test: testMemLeakWoH runLevel: regular
301 Test: testLibSize runLevel: express
302 \endverbatim
303 
304 We can run our dummy test using:
305  - ./runTest testFooName
306  \verbatim
307  fruh@htfuws:~/projects/BitPunch$ ./runTest testFooName
308  Tests to run (1): testFooName
309  ======== BEGIN::testFooName ========
310  INFO: /media/fruh/data/projects/BitPunch/runtest/tests/foosuite
311  INFO: fooarg1: testFoo
312  INFO: fooarg2: fooarg2
313  WARNING: warning message
314  INFO: cleaning build...
315  INFO: building static-lib...
316  PASSED
317  -------- END::testFooName --------
318  ======== RESULTS ========
319  Result folder: /media/fruh/data/projects/BitPunch/runtest/results/2015-05-17T23:51:36.709632
320  FAILED: 0
321  SKIPPED: 0
322  PASSED: 1
323  -------------------------
324  \endverbatim
325 
326 */
327 #define VERSION = "0.0.4"
#define VERSION
Definition: version.h:327
int BPU_mecsInitParamsGoppa(BPU_T_UN_Mecs_Params *params, const uint16_t m, const uint16_t t, const BPU_T_GF2_16x mod)
Definition: mecsctx.c:192
int BPU_mecsInitCtx(BPU_T_Mecs_Ctx **ctx, const BPU_T_UN_Mecs_Params *params, const BPU_T_EN_Mecs_Types type)
Initialize (register) mecs functions for encryption, decryption and key gen based on type...
Definition: mecsctx.c:37
basic mecs, without any conversion
Definition: mecsctx.h:28
int BPU_mecsFreeCtx(BPU_T_Mecs_Ctx **ctx)
Definition: mecsctx.c:158
void BPU_mecsFreeParamsGoppa(BPU_T_UN_Mecs_Params *params)
Definition: mecsctx.c:196