Add the platform generic errors

Replace the module specific errors with the `MBEDTLS_ERR_PLATFORM_XXX`
errors.
pull/8704/head
Ron Eldor 2018-11-25 13:21:43 +02:00
parent 5ed3a64527
commit 5e0223f78f
1 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ int mbedtls_ccm_setkey( mbedtls_ccm_context *ctx,
break;
case 192:
case 256:
return( MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE );
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
default:
return( MBEDTLS_ERR_CCM_BAD_INPUT );
}
@ -199,7 +199,7 @@ int mbedtls_ccm_star_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length,
unsigned char *output,
unsigned char *tag, size_t tag_len )
{
return( MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE );
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
}
int mbedtls_ccm_star_auth_decrypt( mbedtls_ccm_context *ctx, size_t length,
@ -209,7 +209,7 @@ int mbedtls_ccm_star_auth_decrypt( mbedtls_ccm_context *ctx, size_t length,
unsigned char *output,
const unsigned char *tag, size_t tag_len )
{
return( MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE );
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
}
#endif