Fix "int vs enum" warnings from armcc v5

enumerated type mixed with another type
This commit is contained in:
Manuel Pégourié-Gonnard 2015-02-10 17:32:14 +01:00
parent 7f84905552
commit a273371fc4
7 changed files with 16 additions and 14 deletions
library

View file

@ -526,7 +526,7 @@ int rsa_rsaes_oaep_encrypt( rsa_context *ctx,
if( f_rng == NULL )
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
md_info = md_info_from_type( ctx->hash_id );
md_info = md_info_from_type( (md_type_t) ctx->hash_id );
if( md_info == NULL )
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
@ -705,7 +705,7 @@ int rsa_rsaes_oaep_decrypt( rsa_context *ctx,
if( ilen < 16 || ilen > sizeof( buf ) )
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
md_info = md_info_from_type( ctx->hash_id );
md_info = md_info_from_type( (md_type_t) ctx->hash_id );
if( md_info == NULL )
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
@ -943,7 +943,7 @@ int rsa_rsassa_pss_sign( rsa_context *ctx,
hashlen = md_get_size( md_info );
}
md_info = md_info_from_type( ctx->hash_id );
md_info = md_info_from_type( (md_type_t) ctx->hash_id );
if( md_info == NULL )
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );