Hello,
I am trying to set USERKEK with blhost. As mentioned in the user guide I set USERKEK with this commands:
blhost -p com4 -- key-provisioning enroll
blhost -p com4 -- key-provisioning set_user_key 11 userkey.bin
blhost -p com4 -- key-provisioning write_key_nonvolatile 0
I try to store a 128 Bit AES Key and thus userkey.bin should be 16 Bytes big. However, it is mentioned that userkey.bin should be a plain text binary. My key file contains for example:
Type userkey.bin
ABCDEFABCDEFABCDEFABCDEFABCDEFAB
This makes it 32 Bytes big (when trying to set a 32Byte key it is 64 Bytes big and can not be set using blhost). When setting USERKEK with this userkey.bin, the encrypted cipher differs from what I am expecting, which makes me believe that the used userkey.bin is in the wrong format. I also tried converting the hex key into binary, which did not work aswell.
I can not find any information about how to create a valid userkey.bin which can be imported correctly.
I hope you can help me. Thank in advance!
cheers