mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
- Fixed error codes. Negative when needed (SSL error codes). Non-negative if error-codes are OR'ed to other error codes (ASN1, Base64, MPI, DHM). The rest is negative by default.
This commit is contained in:
parent
9794cb4f03
commit
3391b12ce3
7 changed files with 73 additions and 73 deletions
|
|
@ -28,14 +28,14 @@
|
|||
/*
|
||||
* RSA Error codes
|
||||
*/
|
||||
#define POLARSSL_ERR_RSA_BAD_INPUT_DATA 0x0400
|
||||
#define POLARSSL_ERR_RSA_INVALID_PADDING 0x0410
|
||||
#define POLARSSL_ERR_RSA_KEY_GEN_FAILED 0x0420
|
||||
#define POLARSSL_ERR_RSA_KEY_CHECK_FAILED 0x0430
|
||||
#define POLARSSL_ERR_RSA_PUBLIC_FAILED 0x0440
|
||||
#define POLARSSL_ERR_RSA_PRIVATE_FAILED 0x0450
|
||||
#define POLARSSL_ERR_RSA_VERIFY_FAILED 0x0460
|
||||
#define POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE 0x0470
|
||||
#define POLARSSL_ERR_RSA_BAD_INPUT_DATA -0x0400
|
||||
#define POLARSSL_ERR_RSA_INVALID_PADDING -0x0410
|
||||
#define POLARSSL_ERR_RSA_KEY_GEN_FAILED -0x0420
|
||||
#define POLARSSL_ERR_RSA_KEY_CHECK_FAILED -0x0430
|
||||
#define POLARSSL_ERR_RSA_PUBLIC_FAILED -0x0440
|
||||
#define POLARSSL_ERR_RSA_PRIVATE_FAILED -0x0450
|
||||
#define POLARSSL_ERR_RSA_VERIFY_FAILED -0x0460
|
||||
#define POLARSSL_ERR_RSA_OUTPUT_TOO_LARGE -0x0470
|
||||
|
||||
/*
|
||||
* PKCS#1 constants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue