digitalmars.D.learn - AES-NI
- Heinz (5/5) Dec 08 2012 Hi,
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (8/13) Dec 08 2012 Yes, they are supported.
- Heinz (8/18) Dec 08 2012 Thanks for your answer. By supported you mean i can use the
- David Nadlinger (9/12) Dec 08 2012 You probably want to have a look at the Intel Instruction Set
- =?UTF-8?B?QWxleCBSw7hubmUgUGV0ZXJzZW4=?= (6/24) Dec 08 2012 --
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
Dec 08 2012
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? ThanksYes, 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. -- Alex Rønne Petersen alex lycus.org http://lycus.org
Dec 08 2012
On Saturday, 8 December 2012 at 17:11:37 UTC, Alex Rønne Petersen wrote:On 08-12-2012 18:08, Heinz wrote: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? 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.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? ThanksYes, 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.
Dec 08 2012
On Saturday, 8 December 2012 at 20:14:09 UTC, Heinz wrote: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.You probably want to have a look at the Intel Instruction Set Reference document. When I am looking for things like this, I'm tend to be lazy and just search my PDF copy of the »Combined Volume Set of Intel® 64 and IA-32 Architectures Software Developer’s Manuals«, downloadable here: http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html (the documentation for AESENC, for example, is at Vol. 2A, 3-44) David
Dec 08 2012
On 08-12-2012 21:14, Heinz wrote:On Saturday, 8 December 2012 at 17:11:37 UTC, Alex Rønne Petersen wrote:You can use the mnemonics.On 08-12-2012 18:08, Heinz wrote: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?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? ThanksYes, 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.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 lycus.org http://lycus.org
Dec 08 2012