@@ -176,9 +176,9 @@ static void hmac_gen(void)
176
176
fclose (out );
177
177
}
178
178
179
+ #ifdef LTC_OMAC
179
180
static void omac_gen (void )
180
181
{
181
- #ifdef LTC_OMAC
182
182
unsigned char key [MAXBLOCKSIZE ], output [MAXBLOCKSIZE ], input [MAXBLOCKSIZE * 2 + 2 ];
183
183
int err , x , y , z , kl ;
184
184
FILE * out ;
@@ -234,12 +234,12 @@ static void omac_gen(void)
234
234
fprintf (out , "\n" );
235
235
}
236
236
fclose (out );
237
- #endif
238
237
}
238
+ #endif
239
239
240
+ #ifdef LTC_PMAC
240
241
static void pmac_gen (void )
241
242
{
242
- #ifdef LTC_PMAC
243
243
unsigned char key [MAXBLOCKSIZE ], output [MAXBLOCKSIZE ], input [MAXBLOCKSIZE * 2 + 2 ];
244
244
int err , x , y , z , kl ;
245
245
FILE * out ;
@@ -295,12 +295,12 @@ static void pmac_gen(void)
295
295
fprintf (out , "\n" );
296
296
}
297
297
fclose (out );
298
- #endif
299
298
}
299
+ #endif
300
300
301
+ #ifdef LTC_EAX_MODE
301
302
static void eax_gen (void )
302
303
{
303
- #ifdef LTC_EAX_MODE
304
304
int err , kl , x , y1 , z ;
305
305
FILE * out ;
306
306
unsigned char key [MAXBLOCKSIZE ], nonce [MAXBLOCKSIZE * 2 ], header [MAXBLOCKSIZE * 2 ],
@@ -361,12 +361,12 @@ static void eax_gen(void)
361
361
fprintf (out , "\n" );
362
362
}
363
363
fclose (out );
364
- #endif
365
364
}
365
+ #endif
366
366
367
+ #ifdef LTC_OCB_MODE
367
368
static void ocb_gen (void )
368
369
{
369
- #ifdef LTC_OCB_MODE
370
370
int err , kl , x , y1 , z ;
371
371
FILE * out ;
372
372
unsigned char key [MAXBLOCKSIZE ], nonce [MAXBLOCKSIZE * 2 ],
@@ -430,12 +430,12 @@ static void ocb_gen(void)
430
430
fprintf (out , "\n" );
431
431
}
432
432
fclose (out );
433
- #endif
434
433
}
434
+ #endif
435
435
436
+ #ifdef LTC_OCB3_MODE
436
437
static void ocb3_gen (void )
437
438
{
438
- #ifdef LTC_OCB3_MODE
439
439
int err , kl , x , y1 , z , noncelen ;
440
440
FILE * out ;
441
441
unsigned char key [MAXBLOCKSIZE ], nonce [MAXBLOCKSIZE * 2 ],
@@ -500,12 +500,12 @@ static void ocb3_gen(void)
500
500
fprintf (out , "\n" );
501
501
}
502
502
fclose (out );
503
- #endif
504
503
}
504
+ #endif
505
505
506
+ #ifdef LTC_CCM_MODE
506
507
static void ccm_gen (void )
507
508
{
508
- #ifdef LTC_CCM_MODE
509
509
int err , kl , x , y1 , z ;
510
510
FILE * out ;
511
511
unsigned char key [MAXBLOCKSIZE ], nonce [MAXBLOCKSIZE * 2 ],
@@ -569,12 +569,12 @@ static void ccm_gen(void)
569
569
fprintf (out , "\n" );
570
570
}
571
571
fclose (out );
572
- #endif
573
572
}
573
+ #endif
574
574
575
+ #ifdef LTC_GCM_MODE
575
576
static void gcm_gen (void )
576
577
{
577
- #ifdef LTC_GCM_MODE
578
578
int err , kl , x , y1 , z ;
579
579
FILE * out ;
580
580
unsigned char key [MAXBLOCKSIZE ], plaintext [MAXBLOCKSIZE * 2 ], tag [MAXBLOCKSIZE ];
@@ -632,8 +632,8 @@ static void gcm_gen(void)
632
632
fprintf (out , "\n" );
633
633
}
634
634
fclose (out );
635
- #endif
636
635
}
636
+ #endif
637
637
638
638
static void base64_gen (void )
639
639
{
@@ -701,9 +701,9 @@ static void ecc_gen(void)
701
701
fclose (out );
702
702
}
703
703
704
+ #ifdef LTC_LRW_MODE
704
705
static void lrw_gen (void )
705
706
{
706
- #ifdef LTC_LRW_MODE
707
707
FILE * out ;
708
708
unsigned char tweak [16 ], key [16 ], iv [16 ], buf [1024 ];
709
709
int x , y , err ;
@@ -765,8 +765,8 @@ static void lrw_gen(void)
765
765
lrw_done (& lrw );
766
766
}
767
767
fclose (out );
768
- #endif
769
768
}
769
+ #endif
770
770
771
771
int main (void )
772
772
{
0 commit comments