A method for performing a communication protocol with a secret key between two processing devices