Capturing pre-shared keys