Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6708 Discussions

AES-NI functions like SubBytes, KeyAddition etc

Sergej_Mamberger
Beginner
1,218 Views

Hello everyone,
I have read the whitepaper on AES-NI where AESENC used the typical Rijndael Functions SubBytes, MicColumns and so on. However, I cannot find a reference of the implementation to these functions. I would like to study them more so it would be very helpful if someone could tell me where to find them? 

More precisely, I would like to get it as assembler instructions in order to compute the cycles for each of these functions.

Thank you in advance.

0 Kudos
7 Replies
NoorjahanSk_Intel
Moderator
1,166 Views

Hi,


Thanks for posting in Intel Communities.


Please refer to below link to get more details on implementation of the functions.


https://www.intel.com/content/www/us/en/docs/ipp-crypto/developer-reference/2022-2/rijndael-functions.html


Thanks & Regards,

Noorjahan.


0 Kudos
Sergej_Mamberger
Beginner
1,152 Views

Hi, I have replied seperately to your answer. Please view below. Sorry.

0 Kudos
Sergej_Mamberger
Beginner
1,153 Views

Hi @NorjaahanSk_Intel,
Thank you for the reply. I have already seen this reference and I could not find the Information I was looking for. Where on this reference are you able to find the AES-NI Implementations for SubBytes and so on?

Probably I need to explain my problem a bit more:
https://www.intel.com/content/dam/doc/white-paper/advanced-encryption-standard-new-instructions-set-paper.pdf

States that AESENC, used by AES-NI, performes the following operations:

AESENC xmm1, xmm2/m128 
Tmp := xmm1  
Round Key := xmm2/m128  
Tmp := ShiftRows (Tmp)  
Tmp := SubBytes (Tmp)   
Tmp := MixColumns (Tmp)  
xmm1 := Tmp xor Round Key

What I want to find out is the Implementation of the functions ShiftRows, SubBytes and MixColumns. 

0 Kudos
NoorjahanSk_Intel
Moderator
1,083 Views

Hi,


All the IPP crypto source code is public released at Intel Github.


Please refer to the below link for more details on assembler instructions:

https://github.com/intel/ipp-crypto/tree/develop/sources/ippcp/asm_intel64


Thanks & Regards,

Noorjahan.


0 Kudos
NoorjahanSk_Intel
Moderator
1,046 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Noorjahan.


0 Kudos
Sergej_Mamberger
Beginner
1,037 Views

Hello, 
My apologies. I have not found the code I wanted to. But it doesn't matter, since I found another way to solve my problem. Thank you regardless

Kind regards,
Sergej

0 Kudos
NoorjahanSk_Intel
Moderator
963 Views

Hi,


Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Noorjahan.


0 Kudos
Reply