Open Access iconOpen Access

ARTICLE

A Novel S-Box Generation Methodology Based on the Optimized GAN Model

Runlian Zhang1,*, Rui Shu1, Yongzhuang Wei1, Hailong Zhang2, Xiaonian Wu1

1 Guangxi Key Laboratory of Cryptography and Information Security, Guilin University of Electronic Technology, Guilin, 541004, China
2 State Key Laboratory of Information Security, Institute of Information Engineering, Chinese Academy of Sciences, Beijing, 100085, China

* Corresponding Author: Runlian Zhang. Email: email

Computers, Materials & Continua 2023, 76(2), 1911-1927. https://doi.org/10.32604/cmc.2023.041187

Abstract

S-boxes can be the core component of block ciphers, and how to efficiently generate S-boxes with strong cryptographic properties appears to be an important task in the design of block ciphers. In this work, an optimized model based on the generative adversarial network (GAN) is proposed to generate 8-bit S-boxes. The central idea of this optimized model is to use loss function constraints for GAN. More specially, the Advanced Encryption Standard (AES) S-box is used to construct the sample dataset via the affine equivalence property. Then, three models are respectively built and cross-trained to generate 8-bit S-boxes based on three extended frameworks of GAN, i.e., Deep Convolution Generative Adversarial Networks (DCGAN), Wasserstein Generative Adversarial Networks (WGAN), and Wasserstein Generative Adversarial Network with Gradient Penalty (WGAN-GP). Besides, an optimized model based on WGAN-GP referred to as WGP-IM is also proposed, which adds the loss function constraints to the generator network of the WGAN-GP model, including bijection loss, differential uniformity loss, and nonlinearity loss. In this case, 8-bit S-boxes can be generated with cross-training. Experimental results illustrate that the WGP-IM model can generate S-boxes with excellent cryptographic properties. In particular, the optimal differential uniformity of the generated S-boxes can be reduced to 8, and the nonlinearity can be up to 104. Compared with previous S-box generation methods, this new method is simpler and it can generate S-boxes with excellent cryptographic properties.

Keywords


Cite This Article

APA Style
Zhang, R., Shu, R., Wei, Y., Zhang, H., Wu, X. (2023). A novel s-box generation methodology based on the optimized GAN model. Computers, Materials & Continua, 76(2), 1911-1927. https://doi.org/10.32604/cmc.2023.041187
Vancouver Style
Zhang R, Shu R, Wei Y, Zhang H, Wu X. A novel s-box generation methodology based on the optimized GAN model. Comput Mater Contin. 2023;76(2):1911-1927 https://doi.org/10.32604/cmc.2023.041187
IEEE Style
R. Zhang, R. Shu, Y. Wei, H. Zhang, and X. Wu "A Novel S-Box Generation Methodology Based on the Optimized GAN Model," Comput. Mater. Contin., vol. 76, no. 2, pp. 1911-1927. 2023. https://doi.org/10.32604/cmc.2023.041187



cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 300

    View

  • 229

    Download

  • 0

    Like

Share Link