RSA blinding threading support

This commit is contained in:
Paul Bakker 2013-09-29 14:58:17 +02:00
parent 1337affc91
commit c9965dca27
2 changed files with 26 additions and 1 deletions

View file

@ -32,6 +32,10 @@
#include "bignum.h"
#include "md.h"
#if defined(POLARSSL_THREADING_C)
#include "threading.h"
#endif
/*
* RSA Error codes
*/
@ -100,6 +104,9 @@ typedef struct
specified in the md.h header file
for the EME-OAEP and EMSA-PSS
encoding */
#if defined(POLARSSL_THREADING_C)
threading_mutex_t mutex; /*!< Thread-safety mutex */
#endif
}
rsa_context;