Pkeyauth

It is better to move this to Pkeyauth helper so that you can change things in one place.