Skip to content

Commit 5e0223f

Browse files
author
Ron Eldor
committed
Add the platform generic errors
Replace the module specific errors with the `MBEDTLS_ERR_PLATFORM_XXX` errors.
1 parent 5ed3a64 commit 5e0223f

File tree

1 file changed

+3
-3
lines changed
  • features/cryptocell/FEATURE_CRYPTOCELL310

1 file changed

+3
-3
lines changed

features/cryptocell/FEATURE_CRYPTOCELL310/ccm_alt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int mbedtls_ccm_setkey( mbedtls_ccm_context *ctx,
5959
break;
6060
case 192:
6161
case 256:
62-
return( MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE );
62+
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
6363
default:
6464
return( MBEDTLS_ERR_CCM_BAD_INPUT );
6565
}
@@ -199,7 +199,7 @@ int mbedtls_ccm_star_encrypt_and_tag( mbedtls_ccm_context *ctx, size_t length,
199199
unsigned char *output,
200200
unsigned char *tag, size_t tag_len )
201201
{
202-
return( MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE );
202+
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
203203
}
204204

205205
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,
209209
unsigned char *output,
210210
const unsigned char *tag, size_t tag_len )
211211
{
212-
return( MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE );
212+
return( MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED );
213213
}
214214

215215
#endif

0 commit comments

Comments
 (0)