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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:1386:       PIKEFUN string(8bit) get_y()    {    push_text("");    }       PIKEFUN void create(string(8bit)|Stdio_Buffer data)    flags ID_PROTECTED|ID_VARIANT;    {    if (TYPEOF(*data) == PIKE_T_OBJECT) { -  apply(data->u.object, "read", 0); +  push_int(CURVE25519_SIZE); +  apply(data->u.object, "read", 1);    }    apply_current(f_Nettle_Curve25519_Point_set_fun_num, 1);    }       PIKEFUN Nettle_Curve25519_Point `*(string(8bit) scalar)    flags ID_PROTECTED;    {    struct pike_string *res;    if (scalar->len != CURVE25519_SIZE) Pike_error("Invalid scalar.\n");    res = begin_shared_string(CURVE25519_SIZE);