Notes on implementing the AES algorithm on FPGA

Source: Internet
Author: User

For AEs whose key length is 128 bitsAlgorithm.

1. the AES algorithm requires 10 rounds of operations. The most basic implementation is 11 cycles.

2. 16 sboxes are used for each round of encryption, and each sbox occupies 1 2048-bit Rom. Key expansion uses four sboxes. If on-the-fly is performed, a total of 20 sboxes are required. If the key expansion is prepared in advance, 16 sboxes and 1408 bits RAM are required to store the subkey.

3. on Altera FPGA, each sbox occupies one ESB or EAB. on Xilinx FPGA, each sbox occupies one block ram (because each block ram is dual-port ). In theory, AES encryption can be implemented using a piece of Spartan-II xc2100 (10 block RAMs) or a piece of flex epf10k200s (24 eabs.

4. in order to implement it on a cheap chip such as acex 1k30 (6 eabs), we need to break down one round into four steps. In this way, we only use four sboxes, together with the subkey, and use five eabs in total. Of course, 41 cycles is required to complete a 128-bit block encryption, and the throughput also drops to 1/4.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.