mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #3831 from SparkiDev/sp_int_not_inf
SP int: define errors for backward compatability
This commit is contained in:
@ -666,6 +666,7 @@ typedef struct sp_ecc_ctx {
|
||||
/** Result of comparison is that the first number is less than second. */
|
||||
#define MP_LT -1
|
||||
|
||||
/* ERROR VALUES */
|
||||
/** Error value on success. */
|
||||
#define MP_OKAY 0
|
||||
/** Error value when dynamic memory allocation fails. */
|
||||
@ -676,6 +677,10 @@ typedef struct sp_ecc_ctx {
|
||||
* completion.
|
||||
*/
|
||||
#define FP_WOULDBLOCK -4
|
||||
/* Unused error. Defined for backward compatability. */
|
||||
#define MP_NOT_INF -5
|
||||
/* Unused error. Defined for backward compatability. */
|
||||
#define MP_RANGE MP_NOT_INF
|
||||
|
||||
/* Number of bits in each word/digit. */
|
||||
#define DIGIT_BIT SP_WORD_SIZE
|
||||
|
Reference in New Issue
Block a user