我注入了一个 256 位的 HMAC 秘密:
root@raspberrypi:~ # ssscli se05x readidlist
sss :INFO :atr (Len=35)
01 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 00
01 00 00 00 00 64 13 88 0A 00 65 53 45 30 35 31
00 00 00
sss :WARN :nxEnsure:'ret == SM_OK' failed. At Line:6971 Func
tion:sss_se05x_TXn
sss :WARN :Error in Se05x_API_ReadType. Further use of object may fail
sss :WARN :nxEnsure:'ret == SM_OK' failed. At Line:6971 Function:sss_se05x_TXn
Key-Id: 0Xa12 HMAC Size(Bits): 256它不会工作:
root@raspberrypi:~ # ssscli sign --hashalgo SHA256 a12 input hmac
sss :INFO :atr (Len=35)
01 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 00
01 00 00 00 00 64 13 88 0A 00 65 53 45 30 35 31
00 00 00
sss :WARN :nxEnsure:'macOperation != kSE05x_MACAlgo_NA' failed. At Line:6489 Function:sss_se05x_mac_one_go
ERROR:sss.symmetric:sss_mac_one_go FAILED
ERROR:sss.sign:Received signature data is empty
ERROR! Could not Sign from KeyID 0x00000A12输入文件:
root@raspberrypi:~ # cat input
1672057238我们如何解决它?