STSafe-A110 unwrap error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-21 11:47 PM - last edited on ‎2024-07-08 7:13 AM by Peter BENSCH
Hello,
I am using the STSAFE-A110 connected to the ESP32C3 board. I referred to the service interface from this GitHub repository (https://github.com/kmwebnet/stsafe_esp32_test). I have matched the Host MAC key and cipher key exactly as in the example. The current status is that pairing is complete, and the wrap operation returns a success response. However, I am encountering a 0x11 error during the unwrap operation.
Unwrap_Failed : 17 <- print decimal data
Solved! Go to Solution.
- Labels:
-
Cryptography
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 12:25 AM
Hi @Benjamin BARATTE ,
After posting the question, I checked the code and found that the CRC algorithm was incorrect. After making the corrections, I tested it and it worked.
Thank you.
Best Regards,
Darzento
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-21 6:37 AM
Hi @darzento ,
As the wrap envelop is working fine, one reason to get such error is that the envelop you hare sending to the unwrap command is corrupted.
Could you check the input parameter you pass to the StSafeA_Unwrap() API ?
Best Regards,
Benjamin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 12:25 AM
Hi @Benjamin BARATTE ,
After posting the question, I checked the code and found that the CRC algorithm was incorrect. After making the corrections, I tested it and it worked.
Thank you.
Best Regards,
Darzento
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 1:09 AM
Hi @darzento ,
Thanks for the feedback.
Normally, in case of CRC error in the CRC bytes, you should get a STSAFEA_COMMUNICATION_ERROR from the STSAFE-A.
Best Regards,
Benjamin
