The transition to post-quantum cryptography (PQC) requires not only replacing vulnerable cryptographic primitives, but also refactoring the surrounding software logic. While existing PQC migration frameworks provide organizational guidance, practical code-level remediation remains largely manual and error-prone. This paper evaluates whether large language models (LLMs) can be trained to assist in the migration of pre-quantum cryptographic code fragments to post-quantum counterparts while preserving functional correctness. To this end, we introduce a reproducible experimental framework built around a synthetic dataset of 800 paired Python code fragments covering six cryptographic families and combined multi-primitive cases. Each pair is validated through category-specific functional tests, enabling both dataset quality control and objective evaluation of model-generated migrations. Four models are assessed: GPT-4.1 in a zero-shot setting, and fine-tuned versions of GPT-3.5-turbo, GPT-4.1-mini, and CodeLlama-7B-Instruct. The results show that domain-specific fine-tuning is essential for reliable cryptographic migration. The fine-tuned GPT-4.1-mini model achieves the best overall performance, with a mean static similarity of 0.9072 and a dynamic functional correctness rate of 92.5%, substantially outperforming the zero-shot baseline. A complementary validation on six open-source repositories further shows that the approach can produce useful migrations in localized cryptographic modules, while also revealing limitations in larger projects with complex dependencies and cross-module interactions. These findings suggest that fine-tuned LLMs can serve as practical components in future crypto-agile migration pipelines, provided they are coupled with automated verification and dependency-aware validation.
A Global Readiness and Sovereignty Capability Model for Post-Quantum Cryptography Migration
Centre for Intelligent Cloud Computing, CoE for Advanced Cloud, Faculty of Information Science and Technology, Multimedia University(多媒体大学信息科学与技术学院先进云计算卓越中心智能云计算中心)
A Framework for Post Quantum Migration in IoT-Based Healthcare Systems
University of Wyoming(怀俄明大学);University of New South Wales (UNSW)(新南威尔士大学);University College Cork (UCC)(科克大学);Concordia University of Edmonton(埃德蒙顿协和大学)
Operationalising Post Quantum TLS Automated Configuration Profiling and Hybrid PQC Deployment in Financial Infrastructure
Nanyang Technological University(南洋理工大学);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);PQStation;OCBC Bank(华侨银行)
A Non-Invasive Cloud-Based Migration Strategy for Post-Quantum Cybersecurity in Smart HVAC Systems: Architecture, Implementation, and Empirical Evaluation
Islamic University of Technology, Gazipur, Bangladesh(伊斯兰理工大学,加济布尔,孟加拉国);Laurentian University, Sudbury, ON, Canada(劳伦森大学,萨德伯里,安大略省,加拿大);Centennial College, Toronto, ON, Canada(百年理工学院,多伦多,安大略省,加拿大)
University of Applied Sciences Nordhausen(诺德豪森应用科技大学);CANCOM Converged Services GmbH(CANCOM融合服务有限责任公司);AIT Austrian Institute of Technolgy(奥地利AIT技术研究所)