The invention discloses an AES
encryption and decryption hardware implementation method based on an RISCV vector
encryption and decryption expansion architecture, and belongs to the technical field of data
encryption, and the method comprises the steps that an RISCV
instruction set carries out vector expansion on AES encryption and decryption, in the AES encryption process, an initial round corresponds to a vaesz.vs instruction, a middle round corresponds to a vaesem.[ vv, vs] instruction, a final round corresponds to a vaesef.[ vv, vs] instruction, in the AES decryption process, the initial round corresponds to the vaesz.vs instruction, and in the AES decryption process, the middle round corresponds to the vaesef.[ vv, vs] instruction. The middle round corresponds to a vaesdm. [vv, vs] instruction, and the final round corresponds to a vaesdf. [vv, vs] instruction, so that the area of a
chip can be reduced, the cost is reduced, the flexibility, modularization and
extensible architecture design of hardware and
software are enhanced, different platforms from embedded computing to high-
performance computing can be easily adapted, and a
solid foundation is provided for evolution and customization of a future cryptographic
algorithm; and the encryption processor architecture is promoted to develop towards a more efficient, more open and more customizable direction.