mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 06:41:08 +00:00
Improve style
This commit is contained in:
parent
1468da76a5
commit
6c6c8fceaa
|
@ -4131,10 +4131,10 @@ cleanup:
|
||||||
/* Read some bytes from an TLS-1.2-PRF-based operation.
|
/* Read some bytes from an TLS-1.2-PRF-based operation.
|
||||||
* See Section 5 of RFC 5246. */
|
* See Section 5 of RFC 5246. */
|
||||||
static psa_status_t psa_key_derivation_tls12_prf_read(
|
static psa_status_t psa_key_derivation_tls12_prf_read(
|
||||||
psa_tls12_prf_key_derivation_t *tls12_prf,
|
psa_tls12_prf_key_derivation_t *tls12_prf,
|
||||||
psa_algorithm_t alg,
|
psa_algorithm_t alg,
|
||||||
uint8_t *output,
|
uint8_t *output,
|
||||||
size_t output_length )
|
size_t output_length )
|
||||||
{
|
{
|
||||||
psa_algorithm_t hash_alg = PSA_ALG_TLS12_PRF_GET_HASH( alg );
|
psa_algorithm_t hash_alg = PSA_ALG_TLS12_PRF_GET_HASH( alg );
|
||||||
uint8_t hash_length = PSA_HASH_SIZE( hash_alg );
|
uint8_t hash_length = PSA_HASH_SIZE( hash_alg );
|
||||||
|
@ -4149,7 +4149,7 @@ static psa_status_t psa_key_derivation_tls12_prf_read(
|
||||||
if( n == 0 )
|
if( n == 0 )
|
||||||
{
|
{
|
||||||
status = psa_key_derivation_tls12_prf_generate_next_block( tls12_prf,
|
status = psa_key_derivation_tls12_prf_generate_next_block( tls12_prf,
|
||||||
alg );
|
alg );
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
return( status );
|
return( status );
|
||||||
|
|
||||||
|
@ -4170,9 +4170,10 @@ static psa_status_t psa_key_derivation_tls12_prf_read(
|
||||||
#endif /* PSA_PRE_1_0_KEY_DERIVATION */
|
#endif /* PSA_PRE_1_0_KEY_DERIVATION */
|
||||||
#endif /* MBEDTLS_MD_C */
|
#endif /* MBEDTLS_MD_C */
|
||||||
|
|
||||||
psa_status_t psa_key_derivation_output_bytes( psa_key_derivation_operation_t *operation,
|
psa_status_t psa_key_derivation_output_bytes(
|
||||||
uint8_t *output,
|
psa_key_derivation_operation_t *operation,
|
||||||
size_t output_length )
|
uint8_t *output,
|
||||||
|
size_t output_length )
|
||||||
{
|
{
|
||||||
psa_status_t status;
|
psa_status_t status;
|
||||||
psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg( operation );
|
psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg( operation );
|
||||||
|
|
Loading…
Reference in a new issue