Function crypto::shamir::poly_interpolate

source ·
fn poly_interpolate(xs: &[gf256], ys: &[gf256]) -> gf256
Expand description

This function performs polynomial interpolation. Given a set of points defined by x and y coordinates, it returns the y-intercept of the unique polynomial that passes through all of the points, with the degree n1n - 1, where nn is the number of points passed to the function.