From f1dd234ac994904b9cd6c063b1d28b44773494b6 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Tue, 6 Jan 2026 00:55:29 -0600 Subject: [PATCH] wolfcrypt/src/error.c, wolfssl/wolfcrypt/error-crypt.h: add BUSY_E and ALREADY_E. --- wolfcrypt/src/error.c | 6 ++++++ wolfssl/wolfcrypt/error-crypt.h | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/error.c b/wolfcrypt/src/error.c index b24a7710d..9e24d9aa4 100644 --- a/wolfcrypt/src/error.c +++ b/wolfcrypt/src/error.c @@ -659,6 +659,12 @@ const char* wc_GetErrorString(int error) case MLKEM_PUB_HASH_E: return "ML-KEM priv key's stored hash doesn't match encoded pub key"; + case BUSY_E: + return "Object is busy"; + + case ALREADY_E: + return "Operation was redundant or preempted"; + case MAX_CODE_E: case WC_SPAN1_MIN_CODE_E: case MIN_CODE_E: diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index 0e7d21cfb..e4db03cd6 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -309,9 +309,11 @@ enum wolfCrypt_ErrorCodes { INTERRUPTED_E = -1004, /* Process interrupted */ MLKEM_PUB_HASH_E = -1005, /* Encoded public key in decapsulation key does * not match stored hash*/ + BUSY_E = -1006, /* Object is busy */ + ALREADY_E = -1007, /* Operation was redundant or preempted */ - WC_SPAN2_LAST_E = -1005, /* Update to indicate last used error code */ - WC_LAST_E = -1005, /* the last code used either here or in + WC_SPAN2_LAST_E = -1007, /* Update to indicate last used error code */ + WC_LAST_E = -1007, /* the last code used either here or in * error-ssl.h */ WC_SPAN2_MIN_CODE_E = -1999, /* Last usable code in span 2 */