1. A computer implemented method comprising: identifying a set of function execution paths through a program to a protected function; generating a polynomial based at least in part on the set of function execution paths; and embedding, via a processor, instructions throughout the program that allow proper execution of the protected function upon determining that a runtime call order to the protected function matches at least one of the set of function execution paths, the matching determined by evaluating the polynomial using a runtime generated secret corresponding to the runtime call order.