mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 17:35:37 +01:00
Improve RSA documentation
- Rephrase file/function/parameter/enum/define/error descriptions into full and clear sentences. - Make sure to adhere to the Arm writing guidelines. - Fix missing/incorrect Doxygen tags. - Standardize terminology used within the file. - Rephrase the descriptions of all md_alg and hashlen parameters. GitHub PR: #1327
This commit is contained in:
parent
17b4f7fc60
commit
042e97fa75
File diff suppressed because it is too large
Load Diff
@ -366,7 +366,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
|||||||
if( use_ret == -(MBEDTLS_ERR_RSA_KEY_GEN_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_KEY_GEN_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "RSA - Something failed during generation of a key" );
|
mbedtls_snprintf( buf, buflen, "RSA - Something failed during generation of a key" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_RSA_KEY_CHECK_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_KEY_CHECK_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "RSA - Key failed to pass the library's validity check" );
|
mbedtls_snprintf( buf, buflen, "RSA - Key failed to pass the validity check of the library" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_RSA_PUBLIC_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_PUBLIC_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "RSA - The public key operation failed" );
|
mbedtls_snprintf( buf, buflen, "RSA - The public key operation failed" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_RSA_PRIVATE_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_PRIVATE_FAILED) )
|
||||||
@ -378,7 +378,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
|||||||
if( use_ret == -(MBEDTLS_ERR_RSA_RNG_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_RNG_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "RSA - The random generator failed to generate non-zeros" );
|
mbedtls_snprintf( buf, buflen, "RSA - The random generator failed to generate non-zeros" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_RSA_UNSUPPORTED_OPERATION) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_UNSUPPORTED_OPERATION) )
|
||||||
mbedtls_snprintf( buf, buflen, "RSA - The implementation doesn't offer the requested operation, e.g. because of security violations or lack of functionality" );
|
mbedtls_snprintf( buf, buflen, "RSA - The implementation does not offer the requested operation, for example, because of security violations or lack of functionality" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_RSA_HW_ACCEL_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_RSA_HW_ACCEL_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "RSA - RSA hardware accelerator failed" );
|
mbedtls_snprintf( buf, buflen, "RSA - RSA hardware accelerator failed" );
|
||||||
#endif /* MBEDTLS_RSA_C */
|
#endif /* MBEDTLS_RSA_C */
|
||||||
|
Loading…
Reference in New Issue
Block a user