Skip to content

Commit cdf8402

Browse files
committed
docs: fix encrypt key erase return contract
1 parent d78c625 commit cdf8402

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libwolfboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ int RAMFUNCTION wolfBoot_get_encrypt_key(uint8_t *k, uint8_t *nonce)
16761676
* This function erases the encryption key and nonce, resetting them to all 0xFF
16771677
* bytes.It ensures that the key and nonce cannot be accessed after erasure.
16781678
*
1679-
* @return 0 if successful.
1679+
* @return 0 on success, or the underlying flash error code on failure.
16801680
*
16811681
*/
16821682
int RAMFUNCTION wolfBoot_erase_encrypt_key(void)

0 commit comments

Comments
 (0)