X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/1589affab225db500965e2cb869c534d6860e6bd..4edc47b89bc56cd4041fdb0f4e8e892acd589ed8:/field.h diff --git a/field.h b/field.h index bf0428a..3a46ac9 100644 --- a/field.h +++ b/field.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: field.h,v 1.9 2004/04/01 12:50:09 mdw Exp $ + * $Id: field.h,v 1.10 2004/04/01 21:28:41 mdw Exp $ * * Definitions for field arithmetic * @@ -30,6 +30,11 @@ /*----- Revision history --------------------------------------------------* * * $Log: field.h,v $ + * Revision 1.10 2004/04/01 21:28:41 mdw + * Normal basis support (translates to poly basis internally). Rewrite + * EC and prime group table generators in awk, so that they can reuse data + * for repeated constants. + * * Revision 1.9 2004/04/01 12:50:09 mdw * Add cyclic group abstraction, with test code. Separate off exponentation * functions for better static linking. Fix a buttload of bugs on the way. @@ -250,6 +255,20 @@ extern field *field_niceprime(mp */*p*/); extern field *field_binpoly(mp */*p*/); +/* --- @field_binnorm@ --- * + * + * Arguments: @mp *p@ = the reduction polynomial + * @mp *beta@ = representation of normal point + * + * Returns: A pointer to the field. + * + * Use: Creates a field structure for a binary field mod @p@ which + * uses a normal basis representation externally. Computations + * are still done on a polynomial-basis representation. + */ + +extern field *field_binnorm(mp */*p*/, mp */*beta*/); + /* --- @field_parse@ --- * * * Arguments: @qd_parse *qd@ = parser context @@ -258,9 +277,10 @@ extern field *field_binpoly(mp */*p*/); * * Use: Parses a field description, which has the form * - * * `prime', `niceprime' or `binpoly' + * * `prime', `niceprime', `binpoly', or `binnorm' * * an optional `:' * * the field modulus + * * for `binnorm', an optional `,' and the beta value */ extern field *field_parse(qd_parse */*qd*/);