Lines Matching refs:field
299 static int ec_asn1_group2fieldid(const EC_GROUP *group, X9_62_FIELDID *field)
304 if (group == NULL || field == NULL)
308 if (field->fieldType != NULL)
309 ASN1_OBJECT_free(field->fieldType);
310 if (field->p.other != NULL)
311 ASN1_TYPE_free(field->p.other);
314 /* set OID for the field */
315 if ((field->fieldType = OBJ_nid2obj(nid)) == NULL)
335 field->p.prime = BN_to_ASN1_INTEGER(tmp,NULL);
336 if (field->p.prime == NULL)
347 field->p.char_two = X9_62_CHARACTERISTIC_TWO_new();
348 char_two = field->p.char_two;
774 /* get the field parameters */
870 /* we have a curve over a prime field */