Using the Joint Distributions of a Cryptographic Function in Side Channel Analysis.