~ubuntu-branches/ubuntu/utopic/dropbear/utopic-proposed

« back to all changes in this revision

Viewing changes to libtomcrypt/testprof/mac_test.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Johnston
  • Date: 2005-12-08 19:20:21 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208192021-nyp9rwnt77nsg6ty
Tags: 0.47-1
* New upstream release.
* SECURITY: Fix incorrect buffer sizing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* test pmac/omac/hmac */
 
2
#include <tomcrypt_test.h>
 
3
 
 
4
int mac_test(void)
 
5
{
 
6
#ifdef HMAC
 
7
   DO(hmac_test()); 
 
8
#endif
 
9
#ifdef PMAC
 
10
   DO(pmac_test()); 
 
11
#endif
 
12
#ifdef OMAC
 
13
   DO(omac_test()); 
 
14
#endif
 
15
#ifdef EAX_MODE
 
16
   DO(eax_test());  
 
17
#endif
 
18
#ifdef OCB_MODE
 
19
   DO(ocb_test());  
 
20
#endif
 
21
#ifdef CCM_MODE
 
22
   DO(ccm_test());
 
23
#endif
 
24
#ifdef GCM_MODE
 
25
   DO(gcm_test());
 
26
#endif
 
27
#ifdef PELICAN
 
28
   DO(pelican_test());
 
29
#endif
 
30
   return 0;
 
31
}
 
32
 
 
33
/* $Source: /cvs/libtom/libtomcrypt/testprof/mac_test.c,v $ */
 
34
/* $Revision: 1.3 $ */
 
35
/* $Date: 2005/05/05 14:35:59 $ */