A distributed secret share update scheme with public verifiability for ad hoc network