mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-31 05:51:14 +00:00
- Updated for latest GCM error
This commit is contained in:
parent
fc5183cf5d
commit
d8ef167833
|
@ -49,7 +49,7 @@
|
||||||
*
|
*
|
||||||
* Module Nr Codes assigned
|
* Module Nr Codes assigned
|
||||||
* MPI 7 0x0002-0x0010
|
* MPI 7 0x0002-0x0010
|
||||||
* GCM 1 0x0012-0x0012
|
* GCM 2 0x0012-0x0014
|
||||||
* AES 2 0x0020-0x0022
|
* AES 2 0x0020-0x0022
|
||||||
* CAMELLIA 2 0x0024-0x0026
|
* CAMELLIA 2 0x0024-0x0026
|
||||||
* XTEA 1 0x0028-0x0028
|
* XTEA 1 0x0028-0x0028
|
||||||
|
|
|
@ -447,6 +447,8 @@ void error_strerror( int ret, char *buf, size_t buflen )
|
||||||
#if defined(POLARSSL_GCM_C)
|
#if defined(POLARSSL_GCM_C)
|
||||||
if( use_ret == -(POLARSSL_ERR_GCM_AUTH_FAILED) )
|
if( use_ret == -(POLARSSL_ERR_GCM_AUTH_FAILED) )
|
||||||
snprintf( buf, buflen, "GCM - Authenticated decryption failed" );
|
snprintf( buf, buflen, "GCM - Authenticated decryption failed" );
|
||||||
|
if( use_ret == -(POLARSSL_ERR_GCM_BAD_INPUT) )
|
||||||
|
snprintf( buf, buflen, "GCM - Bad input parameters to function" );
|
||||||
#endif /* POLARSSL_GCM_C */
|
#endif /* POLARSSL_GCM_C */
|
||||||
|
|
||||||
#if defined(POLARSSL_MD2_C)
|
#if defined(POLARSSL_MD2_C)
|
||||||
|
|
Loading…
Reference in a new issue