Lines Matching defs:form
38 form2str(int form)
40 switch (form) {
42 return "compressed form";
44 return "uncompressed form";
46 return "hybrid form";
48 return "unknown form";
64 roundtrip(EC_GROUP *group, EC_POINT *point, int form, BIGNUM *x, BIGNUM *y)
71 if ((len = EC_POINT_point2oct(group, point, form, NULL, 0, NULL)) == 0)
75 if (EC_POINT_point2oct(group, point, form, buf, len, NULL) != len)
79 errx(1, "%s oct2point", form2str(form));
90 warnx("%s: x", form2str(form));
94 warnx("%s: y", form2str(form));
504 uint8_t form;
508 /* The form for the point at infinity is expected to fail. */
509 form = conversion_forms[0];
511 ret = EC_POINT_point2oct(group, point, form, buf, sizeof(buf), NULL);
513 fprintf(stderr, "FAIL: %s: expected encoding with form 0x%02x "
514 "to fail, got %zu\n", test->description, form, ret);
520 form = conversion_forms[i];
522 ret = EC_POINT_point2oct(group, point, form, buf, sizeof(buf), NULL);
566 uint8_t form = test->octets[0] & 0x06;
569 len = EC_POINT_point2oct(group, point, form, buf, sizeof(buf), NULL);