Side-channel attacks and learning-vector quantization