Use common function for PKEK1&2 generation