calculate ping-pong signature