Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No

What Is AES Anyway?

by

The Advanced Encryption Standard is the most popular cryptographic, symmetric encryption algorithm in the IT world. The standard works on a 128-bit block size and includes 128-, 192-, or 256-bit ciphers (noted as AES-128, AES-192, and AES-256, respectively). The corresponsing keys are equally wide. Many encryption solutions, such as TrueCrypt, embraced AES early on. However, perhaps the most significant factor in the standard's success was its adoption by the U.S. government in 2002 and its status upgrade in 2003 of being approved to protect classified data.

Encrypting Data With AES

AES encryption is based on a substitution-permutation network, which means that a series of mathematical operations is linked in an effort to create highly modified (encrypted) target data. The input is always plain text and a key is used to pilot the operations. These can be as simple as a bitwise rotation or XOR (exclusive OR) or more complex. Because a single pass would be easy to decipher, all modern encryption technologies run multiple rounds. AES cycles through 10, 12, or 14 rounds for AES-128, AES-192, and AES-256. AES keys also undergo the same process as the user data, turning it into the changing round key.

The AES encryption process works with 4x4 arrays of single bytes called boxes—S-boxes for substitution and P-boxes for permutation. Substituation and permutation are separate stages. Substitution works within boxes while permutation swaps information between boxes. The S-box works on complex principles, which means that if only a single input bit is changed, multiple output bits will be affected, or that the property of each and every output bit depends on every input bit.

Applying multiple rounds is what makes for good encryption, as diffusion and confusion criteria have to be met. Diffusion happens through the cascaded combination of S-box and P-box transformation. By changing only a single bit on the input text, the S-box will modify the output of several bits, while the P-box semi-randomly distributes the effect among several S-boxes. When we talk about a minimal input change having maximum impact on the output, we’re talking about the avalanche effect.

How Secure is AES?

A lot of academic debate in the security space currently revolves around so-called breaks, which entail eliminating the necessity of running an exhaustive brute-force search for the correct decryption key. Techniques such as XSL attacks and related-key attacks have been discussed, but with little success. The only workable way to break AES encryption is a certain type of "side-channel attack." This requires the attack to happen on the same system on which the AES encryption is executed, and you have to find a way to obtain cache timing information. In such a case, it's possible to track the number of machine cycles until the encryption process is completed.

Obviously, this isn’t easily done. You would require access to a machine that provides sufficient contact surface for encryption analysis and rights to execute code. At this point, it’s obvious why security leaks that allow someone to possess such rights, no matter how absurd the leak may sound, have to be closed as soon as possible. Long story short: if you get access to a target machine, extraction of the AES key is a matter of expertise and no longer a laborious task that depends on integer horsepower.

AES Inside Intel

Given all this, CPU-based AES instructions start to make real sense, regardless of possible performance benefits. From a security standpoint, the processor may handle AES instructions in an encapsulated manner. This would alleviate the need for lookup tables that might provide data for side-channel cache-based attacks.

Share:
10
Comments
X
Submit

Comments
Read the comments on the forums
mi1ez 02/02/2010 10:03
Hide
-1+

Good grief. About 3 mistakes on the first page!

mi1ez 02/02/2010 10:22
Hide
-0+

I may be being a bit skeptical, butputting on the highest i5 chips that include a GPU? Does this not sound like a money spinner?

aje21 02/02/2010 14:13
Hide
-1+

Nice to see that Intel have finally caught up with Via...
Shame we can't see any benchmarks to compare the performance of the AES engines.

wifiwolf 03/02/2010 19:14
Hide
-1+

I'd think it's not all good things coming from this ability.
Malware programmers can benefit from it as it should accelerate decrypting passwords and alike.

psiboy 04/02/2010 10:15
Hide
-0+

Gee lets compare a quad core to a dual core? WTF! No balance or objectivity here at all! This got past the editors how?

Anonymous 04/02/2010 15:39
Hide
-0+

How does the CPU knows about to use the ASE instructions? Is there a special library comming with the Benchmarks?

Anonymous 04/02/2010 23:04
Hide
-0+

Please do some Linux tests! IMHO the support for the new AES-NI has been in the kernel for quite some time (done by Intel long before those CPUs even came to the market!) and dm-crypt is a very nice way to test REAL WORLD speeds.

Anonymous 05/02/2010 17:48
Hide
--2+

Imagine new i5 without AES-NI! Why would you buy it anyway when it is always inferior compared to i7? Well - there comes Intel marketing guys and say: We will put AES-NI just in i5 (in the beginning) hoping that the product will attract some buyers. If they put now AES-NI in i7, i5 will be doomed processor.

roots 03/03/2010 02:21
Hide
-2+

This would be very nice in a firewall. VPN thoughput on one of these CPU's would be awsome.

My Guess is that where this CPU will end up. The next gen of Cisco ASA series and the like.

Anonymous 02/06/2010 12:55
Hide
-0+

Still kinda sucks... as the AES-NI is only for the 1156 socket. Unless I feel like forking out 1K for the 980x (1366)

Best offers

Newsletters


OK