The invention discloses an
encryption system and an
encryption method for field-programmable
gate array (FPGA) configuration data. The
system comprises a singlechip, an
encryption unit and a configuration
chip, wherein the configuration
chip is used for sending the configuration data to a
programming component; the encryption unit is used for controlling the singlechip to start executing the configuration data after the
programming component receives the configuration data and then sending a random code to the singlechip; the singlechip is used for encrypting the random code and then sending the encrypted random code to the encryption unit; and the encryption unit is also used for encrypting the random code at the same time, comparing the encrypted random code with the random code encrypted by the singlechip and controlling the configuration data in the
programming component to be executed if the random codes are the same. Compared with the prior art, the invention has the advantages that: the
encryption system for the FPGA configuration data is simple, feasible, good in
confidentiality and easy to
upgrade, and is suitable for encryption of the FPGA configuration data with low cost; and because the external singlechip and a part of logic unit in an FPGA are used in an encryption circuit, excessive hardware cost is not increased.