catcrypt: Implement symmetric key-encapsulation and signature schemes.
[u/mdw/catacomb] / field-parse.c
index e815a9f..5f9092a 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: field-parse.c,v 1.2 2004/04/01 21:28:41 mdw Exp $
+ * $Id: field-parse.c,v 1.4 2004/04/08 01:36:15 mdw Exp $
  *
  * Parse field descriptions
  *
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: field-parse.c,v $
- * Revision 1.2  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.1  2004/03/27 17:54:11  mdw
- * Standard curves and curve checking.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "field.h"
@@ -88,9 +75,9 @@ field *field_parse(qd_parse *qd)
       f = field_binnorm(m, b);      
       break;
     default:
-      f = 0;
-      break;
+      goto done;
   }
+  if (!f) qd->e = "bad field parameters";
 done:
   mp_drop(m);
   mp_drop(b);