Performance comparison of spline curves and chebyshev polynomials for managing keys in MANETs