AnsweredAssumed Answered

CAAM HASH algorithm performance Question

Question asked by Li Zhongyue on Jun 17, 2019
Latest reply on Jun 28, 2019 by gusarambula

Dear NXP engineers:

 

G'Day.

I am working on caam hash performance test on i.MX8 board.

and there is weird result that sha1 performance is lower than sha256's.

As far as i know, the computation of sha256 algorithm is more complicated that sha1's,

so i want to know why sha1 hash time is longer than sha256's.

 

I know the hash time is depend on the algorithm implementation.

Following is the test result, please help to confirm if it is normal data of test result?

 

Hash SHA1: 16 Mega byte data takes 94 milliseconds.

----------------------------------------------------

Job ring parameters:

g_job->dsc[0]:b0800007
g_job->dsc[1]:8441000d
g_job->dsc[2]:24540000
g_job->dsc[3]:84ef0a40
g_job->dsc[4]:1000000
g_job->dsc[5]:54200014
g_job->dsc[6]:81edef00

-----------------------------------------------------

 

Hash SHA256: 16 Mega byte data takes 81 milliseconds.

------------------------------------------------------

Job ring parameters:

g_job->dsc[0]:b0800007
g_job->dsc[1]:8443000d
g_job->dsc[2]:24540000
g_job->dsc[3]:84ef0a40
g_job->dsc[4]:1000000
g_job->dsc[5]:54200020
g_job->dsc[6]:81edef00

-----------------------------------------------------

 

Looking forward to you reply.

Thanks a bunch.

Outcomes