We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed91715 commit b59115cCopy full SHA for b59115c
atecc608a_se.c
@@ -221,11 +221,10 @@ static psa_status_t atecc608a_import_public_key(
221
ASSERT_SUCCESS(atcab_write_pubkey(key_id, pubkey_for_driver((uint8_t *) data)));
222
223
if (bits != NULL) {
224
- /* The 64-byte key is written as 72 bytes. See atcab_write_pubkey() for
225
- * why 72 bytes. */
226
- *bits = PSA_BYTES_TO_BITS(72);
+ /* The 64-byte key is stored in the SE as 72 bytes, but we return 64 as
+ * the actual key size. */
+ *bits = PSA_BYTES_TO_BITS(64);
227
}
228
-
229
exit:
230
atecc608a_deinit();
231
return status;
0 commit comments