CAAM hangs in SHA-1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAAM hangs in SHA-1

Jump to solution
1,049 Views
AlexeyT
Contributor III

Hello All,

I am trying to implement hardware SHA-1 calculation support for my project.

My platform in Windows Embedded Compact 7

We don't need anything else, just a hardware calculation of SHA-1 which will only be done once.

I got necessary manuals etc. and started my implementation.

Implemented job ring support and tried constructing my job.

Basically, job ring interface works for me ok, I managed to run job which just loads 64 bytes of data into class 2 FIFO and it executed just fine.

This would mean that CAAM is functioning ok.

Problem starts when I try adding SHA-1 algorithm command: it just hangs in there and job execution hangs.

My job (currently) is very simple:

- header

- fifo load data into class2 message, final

- SHA-1 algorithm, no key, init/fin, class 2

What would cause SHA algorithm to hang? Did I miss something in initialization?

I tried just to call SHA1 init without of any data feed to FIFO; it still hangs...

(AFAIK it supposed to initialize data structures and then leave)

Our system runs HAB in bootloader and most of the CAAM initialization (presumably) happens there.

I almost run out of ideas where to look for possible problem(s).

Any help would really appreciated.

Alexey

UPD Question

Do I need to prime CAAM SHA1 with initial data?

My code does not do it. Could it cause my issues?

Labels (1)
0 Kudos
1 Solution
700 Views
AlexeyT
Contributor III

Hi,

Finally managed to solve the issue.

Problem was in FIFO load command - I got 2 configuration bits set to wrong values leading to hang.

Thanks.

View solution in original post

0 Kudos
3 Replies
701 Views
AlexeyT
Contributor III

Hi,

Finally managed to solve the issue.

Problem was in FIFO load command - I got 2 configuration bits set to wrong values leading to hang.

Thanks.

0 Kudos
700 Views
michaelmaennel
Contributor I

Hello Alexey,

please name the wrong configuration bits!

Kr, Michael

0 Kudos
700 Views
CarlosCasillas
NXP Employee
NXP Employee

Deactivated user​ are you able to help here?

Best regards!

0 Kudos