Horizontal correlation attack on protected pairing implementations