Debugging CAAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Debugging CAAM

728 次查看
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

标记 (1)
0 项奖励
回复
0 回复数