Debugging CAAM

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

Debugging CAAM

315 Views
garethphillips
Contributor I

Hello,

I am trying to add support for HMAC-SHA256 using black keys.  I have modified the CAAM code to do this and it runs without error, but it produces the wrong output.  To debug this I would like to be able to duplicate what the CAAM does.  I am generating a CAAM key with `caam-keygen create black_key ecb -t abcdef0123456789`.  I was expecting that  the generated file would contain abcdef0123456789 encrypted with the contents of /sys/kernel/debug/30900000.crypto/ctl/kek, but this does not seem to be the case.  Do you know how the black key is created?

Thanks,
Gareth

Tags (1)
0 Kudos
0 Replies