- Removed dependency on rand() in rsa_pkcs1_encrypt(). Now using random fuction provided to context

- Expanded ssl_client2 arguments for more flexibility
 - rsa_check_private() now supports PKCS1v2 keys as well
 - Fixed deadlock in rsa_pkcs1_encrypt() on failing random generator
This commit is contained in:
Paul Bakker 2010-07-18 08:29:32 +00:00
parent 6796839695
commit b572adf5e6
3 changed files with 31 additions and 8 deletions

View file

@ -34,6 +34,7 @@
#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_RNG_FAILED -0x0480
/*
* PKCS#1 constants