Result: Hamming Weight-Based Simulation of Correlation Power Analysis for AES Key Extraction

Title:
Hamming Weight-Based Simulation of Correlation Power Analysis for AES Key Extraction
Source:
ZERO: Jurnal Sains, Matematika dan Terapan; Vol 9, No 1 (2025): Zero: Jurnal Sains Matematika dan Terapan; 121-132 ; 2580-5754 ; 2580-569X
Publisher Information:
UIN Sumatera Utara
Publication Year:
2025
Collection:
E-Journal Universitas Islam Negeri Sumatera Utara
Document Type:
Academic journal article in journal/newspaper
File Description:
application/pdf
Language:
English
DOI:
10.30829/zero.v9i1.24294
Rights:
Copyright (c) 2025 Andysah Putera Utama Siahaan, Phaklen Ehkan, Insaf Ullah ; http://creativecommons.org/licenses/by-sa/4.0
Accession Number:
edsbas.7F3A9815
Database:
BASE

Further Information

This study investigates the effectiveness of Correlation Power Analysis (CPA) using the Hamming Weight model to extract AES encryption keys in a fully software-simulated environment. By leveraging Python programming, we emulate power traces not from hardware devices but through Hamming Weight calculations derived from byte-level operations during AES encryption. Simulated plaintexts are randomly generated, and key hypotheses are evaluated using Pearson correlation between expected bit-switching activity and simulated traces. The method achieved approximately 50% accuracy with just 10 plaintexts and up to 85% accuracy when using over 1,000 simulated inputs. Correlation coefficients above 0.90 were consistently observed for most key bytes. While the simulation avoids the complexity of real-world noise and hardware interference, it also lacks authentic electrical characteristics. This highlights both the novelty and the limitation of a software-only CPA framework. The findings underline the vulnerability of AES to side-channel attacks and suggest countermeasures like masking to reduce risk.