comparison src/encauth/gcm/gcm_gf_mult.c @ 209:39d5d58461d6 libtomcrypt-orig LTC_1.05

Import of libtomcrypt 1.05
author Matt Johnston <matt@ucc.asn.au>
date Wed, 06 Jul 2005 03:53:40 +0000
parents 1c15b283127b
children
comparison
equal deleted inserted replaced
191:1c15b283127b 209:39d5d58461d6
29 29
30 /* c = b*a */ 30 /* c = b*a */
31 static const unsigned char mask[] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 }; 31 static const unsigned char mask[] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
32 static const unsigned char poly[] = { 0x00, 0xE1 }; 32 static const unsigned char poly[] = { 0x00, 0xE1 };
33 33
34
34 /** 35 /**
35 GCM GF multiplier (internal use only) 36 GCM GF multiplier (internal use only)
36 @param a First value 37 @param a First value
37 @param b Second value 38 @param b Second value
38 @param c Destination for a * b 39 @param c Destination for a * b
85 XMEMCPY(I, T, 16); 86 XMEMCPY(I, T, 16);
86 } 87 }
87 88
88 89
89 #endif 90 #endif
91
92 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/gcm/gcm_gf_mult.c,v $ */
93 /* $Revision: 1.16 $ */
94 /* $Date: 2005/05/21 14:33:42 $ */