开发者

Implementation of AES in assembly [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current 开发者_运维技巧form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Hello Everyone I am trying to build a code to do demonstrate doing AES encryption in assembly. the latest Intel manual has

AESENC xmm1,xmm2/m128 —Perform One Round of an AES Encryption Flow round key from the second source operand, operating on 128-bit data (state) from the first source operand, and store the result in the destination operand.

AESENCLAST xmm1, xmm2/m128 —Perform Last Round of an AES Encryption Flow a round key from the second source operand, operating on 128-bit data (state) from the first source operand, and store the result in the destination operand.

AESKEYGENASSIST xmm1, xmm2/m128, imm8 Assist in expanding the AES cipher key, by computing steps towards generating a round key for encryption, using 128-bit data specified in the source operand and an 8-bit round constant specified as an immediate, store the result in the destination operand.

To do this I will be trying inline assembly, I will be building it to compare speeds with normal AES done in C! my first brainstorm took me thinking how to use xmm in inline assembly any help/brainstorming/sharing ideas concerning my probs or the idea in general is welcome Cheers=)


If you want to get a 128-bit value into an XMM register, look at the MOVDQA and MOVDQU instructions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜