viewgen: generating both signed and encrypted payloads with leaked validation keys