Add tests and fix bugs for RSA-alt contexts

This commit is contained in:
Manuel Pégourié-Gonnard 2014-04-03 22:09:18 +02:00
parent 79e58421be
commit 0148875cfc
6 changed files with 111 additions and 3 deletions

View file

@ -234,7 +234,7 @@ int pk_init_ctx( pk_context *ctx, const pk_info_t *info );
* \param key RSA key pointer
* \param decrypt_func Decryption function
* \param sign_func Signing function
* \param key_len_func Function returning key length
* \param key_len_func Function returning key length in bytes
*
* \return 0 on success, or POLARSSL_ERR_PK_BAD_INPUT_DATA if the
* context wasn't already initialized as RSA_ALT.