pike.git/
src/
post_modules/
Nettle/
hogweed.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2015-01-20
2015-01-20 13:15:15 by Martin Nilsson <nilsson@opera.com>
1818b4140af25c9124801a516034affd6f030cd6 (
11
lines) (+
5
/-
6
)
[
Show
|
Annotate
]
Branch:
8.1
ECC_Curve.Point can now deserialize x9.62 curve points.
554:
{ CVAR struct ecc_point point;
+
INHERIT "__builtin.Nettle.Point";
+
INIT { const struct ecc_curve *curve =
686:
apply_external(1, Nettle_ECC_Curve_Point_program_fun_num, 2); }
-
/*! @decl void create(
object(
Gmp.mpz
)
|int x,
object(
Gmp.mpz
)
|int y)
+
/*! @decl void create(Gmp.mpz|int x, Gmp.mpz|int y)
+
*! @decl void create(Stdio.Buffer|string(7bit) data)
*! *! Initialize to the selected point on the curve. *! *! @note *! Throws errors if the point isn't on the curve. */
-
PIKEFUN void create(object(Gmp.mpz)|int x, object(Gmp.mpz)|int y)
-
flags ID_PROTECTED;
-
{
-
apply_current(f_Nettle_ECC_Curve_Point_set_fun_num, args);
+
}
-
}
+
/*! @endclass Point */