Using bivariate polynomial to design a dynamic key management scheme for wireless sensor networks