News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Basic AES-NI example

Started by peter_asm, May 17, 2014, 07:07:38 AM

Previous topic - Next topic

peter_asm

Just a bit of messing around earlier today with AES-NI for those want a look.
Using ml64 and 64-bit C compilers from Windows SDK so yep, it's in both C/ASM but the example is very basic using CBC mode.

cpu2

Great code is small and faster, the problem is compatibility. And no offense, with white papers intel is easier to implement.

Regards

peter_asm

Yes, I know, no offense taken  :biggrin:
I'm still interested in your finished code but haven't looked into how AES works and can't contribute.

Gunther

Hi peter_asm,

good example, but I think the cpp source is VS specific.

Gunther
You have to know the facts before you can distort them.

peter_asm

Gunther,

Added a macro for it to compile with mingw (assuming that's what you're using)
The aes.asm can assemble with nasm too using some minor changes.

Gunther

Quote from: peter_asm on May 18, 2014, 08:41:26 PM
Added a macro for it to compile with mingw (assuming that's what you're using)
The aes.asm can assemble with nasm too using some minor changes.

:t Thank you.

Gunther
You have to know the facts before you can distort them.

cpu2

Quote from: peter_asm on May 18, 2014, 01:58:48 PM
Yes, I know, no offense taken  :biggrin:
I'm still interested in your finished code but haven't looked into how AES works and can't contribute.

Don`t worry,  when you have finished the part decrypt the show.

Regards.