The MASM Forum

General => The Laboratory => Topic started by: peter_asm on May 17, 2014, 07:07:38 AM

Title: Basic AES-NI example
Post by: peter_asm on May 17, 2014, 07:07:38 AM
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.
Title: Re: Basic AES-NI example
Post by: cpu2 on May 18, 2014, 01:02:28 PM
Great code is small and faster, the problem is compatibility. And no offense, with white papers intel is easier to implement.

Regards
Title: Re: Basic AES-NI example
Post by: 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.
Title: Re: Basic AES-NI example
Post by: Gunther on May 18, 2014, 07:25:29 PM
Hi peter_asm,

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

Gunther
Title: Re: Basic AES-NI example
Post by: peter_asm on May 18, 2014, 08:41:26 PM
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.
Title: Re: Basic AES-NI example
Post by: Gunther on May 18, 2014, 08:55:36 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
Title: Re: Basic AES-NI example
Post by: cpu2 on May 19, 2014, 10:44:00 AM
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.