| 
									
										
										
										
											2017-06-19 15:49:18 +02:00
										 |  |  | /* LibTomCrypt, modular cryptographic library -- Tom St Denis
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * LibTomCrypt is a library that provides various cryptographic | 
					
						
							|  |  |  |  * algorithms in a highly modular and flexible manner. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * The library is free for all purposes without any express | 
					
						
							|  |  |  |  * guarantee it works. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | /* test pmac/omac/hmac */ | 
					
						
							|  |  |  | #include <tomcrypt_test.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | int mac_test(void) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2006-11-17 14:21:24 +00:00
										 |  |  | #ifdef LTC_HMAC
 | 
					
						
							| 
									
										
										
										
											2017-02-24 20:50:37 +01:00
										 |  |  |    DO(hmac_test()); | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2006-11-17 14:21:24 +00:00
										 |  |  | #ifdef LTC_PMAC
 | 
					
						
							| 
									
										
										
										
											2017-02-24 20:50:37 +01:00
										 |  |  |    DO(pmac_test()); | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2006-11-17 14:21:24 +00:00
										 |  |  | #ifdef LTC_OMAC
 | 
					
						
							| 
									
										
										
										
											2017-02-24 20:50:37 +01:00
										 |  |  |    DO(omac_test()); | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2006-11-17 14:21:24 +00:00
										 |  |  | #ifdef LTC_XCBC
 | 
					
						
							|  |  |  |    DO(xcbc_test()); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef LTC_F9_MODE
 | 
					
						
							|  |  |  |    DO(f9_test()); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-07-20 17:48:02 +00:00
										 |  |  | #ifdef LTC_EAX_MODE
 | 
					
						
							| 
									
										
										
										
											2017-02-24 20:50:37 +01:00
										 |  |  |    DO(eax_test()); | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-07-20 17:48:02 +00:00
										 |  |  | #ifdef LTC_OCB_MODE
 | 
					
						
							| 
									
										
										
										
											2017-02-24 20:50:37 +01:00
										 |  |  |    DO(ocb_test()); | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2012-08-05 01:21:13 +02:00
										 |  |  | #ifdef LTC_OCB3_MODE
 | 
					
						
							| 
									
										
										
										
											2017-02-24 20:50:37 +01:00
										 |  |  |    DO(ocb3_test()); | 
					
						
							| 
									
										
										
										
											2012-08-05 01:21:13 +02:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-07-20 17:48:02 +00:00
										 |  |  | #ifdef LTC_CCM_MODE
 | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  |    DO(ccm_test()); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-07-20 17:48:02 +00:00
										 |  |  | #ifdef LTC_GCM_MODE
 | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  |    DO(gcm_test()); | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2007-07-20 17:48:02 +00:00
										 |  |  | #ifdef LTC_PELICAN
 | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  |    DO(pelican_test()); | 
					
						
							| 
									
										
										
										
											2017-03-21 19:42:54 +01:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef LTC_POLY1305
 | 
					
						
							|  |  |  |    DO(poly1305_test()); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef LTC_CHACHA20POLY1305_MODE
 | 
					
						
							|  |  |  |    DO(chacha20poly1305_test()); | 
					
						
							| 
									
										
										
										
											2017-04-21 15:50:47 +02:00
										 |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef LTC_BLAKE2SMAC
 | 
					
						
							|  |  |  |    DO(blake2smac_test()); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef LTC_BLAKE2BMAC
 | 
					
						
							|  |  |  |    DO(blake2bmac_test()); | 
					
						
							| 
									
										
										
										
											2005-04-17 11:37:13 +00:00
										 |  |  | #endif
 | 
					
						
							|  |  |  |    return 0; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2005-06-09 00:08:13 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-19 13:43:49 +02:00
										 |  |  | /* ref:         $Format:%D$ */ | 
					
						
							|  |  |  | /* git commit:  $Format:%H$ */ | 
					
						
							|  |  |  | /* commit time: $Format:%ai$ */ |