mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 09:24:18 +01:00
Add MBEDTLS_ERR_ECP_IN_PROGRESS
This commit is contained in:
parent
c3a3bc7636
commit
5e3c62fd1d
@ -36,6 +36,7 @@
|
|||||||
#define MBEDTLS_ERR_ECP_RANDOM_FAILED -0x4D00 /**< Generation of random value, such as (ephemeral) key, failed. */
|
#define MBEDTLS_ERR_ECP_RANDOM_FAILED -0x4D00 /**< Generation of random value, such as (ephemeral) key, failed. */
|
||||||
#define MBEDTLS_ERR_ECP_INVALID_KEY -0x4C80 /**< Invalid private or public key. */
|
#define MBEDTLS_ERR_ECP_INVALID_KEY -0x4C80 /**< Invalid private or public key. */
|
||||||
#define MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH -0x4C00 /**< Signature is valid but shorter than the user-supplied length. */
|
#define MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH -0x4C00 /**< Signature is valid but shorter than the user-supplied length. */
|
||||||
|
#define MBEDTLS_ERR_ECP_IN_PROGRESS -0x4B80 /**< Operation in progress, try again with the same parameters. */
|
||||||
|
|
||||||
#if !defined(MBEDTLS_ECP_ALT)
|
#if !defined(MBEDTLS_ECP_ALT)
|
||||||
/*
|
/*
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
* DHM 3 9
|
* DHM 3 9
|
||||||
* PK 3 14 (Started from top)
|
* PK 3 14 (Started from top)
|
||||||
* RSA 4 9
|
* RSA 4 9
|
||||||
* ECP 4 8 (Started from top)
|
* ECP 4 9 (Started from top)
|
||||||
* MD 5 4
|
* MD 5 4
|
||||||
* CIPHER 6 6
|
* CIPHER 6 6
|
||||||
* SSL 6 17 (Started from top)
|
* SSL 6 17 (Started from top)
|
||||||
|
@ -225,6 +225,8 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
|||||||
mbedtls_snprintf( buf, buflen, "ECP - Invalid private or public key" );
|
mbedtls_snprintf( buf, buflen, "ECP - Invalid private or public key" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH) )
|
if( use_ret == -(MBEDTLS_ERR_ECP_SIG_LEN_MISMATCH) )
|
||||||
mbedtls_snprintf( buf, buflen, "ECP - Signature is valid but shorter than the user-supplied length" );
|
mbedtls_snprintf( buf, buflen, "ECP - Signature is valid but shorter than the user-supplied length" );
|
||||||
|
if( use_ret == -(MBEDTLS_ERR_ECP_IN_PROGRESS) )
|
||||||
|
mbedtls_snprintf( buf, buflen, "ECP - Operation in progress, try again with the same parameters" );
|
||||||
#endif /* MBEDTLS_ECP_C */
|
#endif /* MBEDTLS_ECP_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_MD_C)
|
#if defined(MBEDTLS_MD_C)
|
||||||
|
Loading…
Reference in New Issue
Block a user