- 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:
Paul Bakker 2009-07-28 20:11:54 +00:00
parent 9794cb4f03
commit 3391b12ce3
7 changed files with 73 additions and 73 deletions

View file

@ -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