Branch: Tag:

2015-01-20

2015-01-20 13:15:15 by Martin Nilsson <nilsson@opera.com>

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    */