Branch: Tag:

2017-01-03

2017-01-03 10:54:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle.Curve25519.Point: Improved support for Stdio.Buffer.

Only read as many bytes as needed from Stdio.Buffer objects.

1393:    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);    }