pike.git / src / post_modules / Nettle / hogweed.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:381:    *! The curve type the object should be initialized as.    *! @int    *! @value Nettle.SECP192R1    *! @value Nettle.SECP224R1    *! @value Nettle.SECP256R1    *! @value Nettle.SECP384R1    *! @value Nettle.SECP521R1    *! @endint    */    PIKEFUN void create(int(0..) curve) -  flags ID_STATIC +  flags ID_PROTECTED;    {    mpz_t mpz_one;       if (THIS->curve) {    Pike_error("The curve has already been initialized!\n");    }       switch(curve) {   #ifdef HAVE_CURVE_NETTLE_SECP_192R1    case SECP192R1: THIS->curve = &nettle_secp_192r1; break;