/* -*-c-*-
*
- * $Id: twofish-mktab.c,v 1.1 2000/06/17 12:10:17 mdw Exp $
+ * $Id: twofish-mktab.c,v 1.2 2000/06/18 23:12:15 mdw Exp $
*
* Build constant tables for Twofish
*
/*----- Revision history --------------------------------------------------*
*
* $Log: twofish-mktab.c,v $
+ * Revision 1.2 2000/06/18 23:12:15 mdw
+ * Change typesetting of Galois Field names.
+ *
* Revision 1.1 2000/06/17 12:10:17 mdw
* New cipher.
*
}
}
-/*----- GF(2^8) arithmetic ------------------------------------------------*/
+/*----- %$\gf{2^8}$% arithmetic -------------------------------------------*/
#define MDS_MOD 0x169
#define RS_MOD 0x14d
/* --- @mul@ --- *
*
- * Arguments: @unsigned x, y@ = polynomials over %$\mathrm{GF}(2^8)$%
+ * Arguments: @unsigned x, y@ = polynomials over %$\gf{2^8}$%
* @unsigned m@ = modulus
*
* Returns: The product of two polynomials.
* Returns: ---
*
* Use: Computes an inner product of matrices over the finite field
- * %$\mathrm{GF}(2^8)[x]/m(x)$%. This isn't particularly rapid.
+ * %$\gf{2^8}[x]/(m(x))$%. This isn't particularly rapid.
*/
static void mmul(octet *d, const octet *p, const octet *q,