AES-NI

Alex Rønne Petersen alex at lycus.org
Sat Dec 8 14:20:46 PST 2012


On 08-12-2012 21:14, Heinz wrote:
> On Saturday, 8 December 2012 at 17:11:37 UTC, Alex Rønne Petersen wrote:
>> On 08-12-2012 18:08, Heinz wrote:
>>> Hi,
>>> Are AES-NI instruction set supported by the D inline assembler?
>>> If not, can they be used by inserting raw data (the corresponding
>>> opcodes)? Does anyone know the opcodes for the instruction set?
>>> Thanks
>>
>> Yes, they are supported.
>>
>> And yes, you can insert raw machine code with the db, dw, dd, and dq
>> directives. The opcodes can be found in the Intel manual.
>
> Thanks for your answer. By supported you mean i can use the mnemonic
> (AESENC, AESDEC, etc) inside an ASM statement or must i insert the raw
> machine code with db, dw, etc?

You can use the mnemonics.

>
> Just in case i've been looking for the corresponding machine codes and
> can not find them, i've searched even in Intel's AES whitepaper with no
> luck.


-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d-learn mailing list