mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 05:45:27 +00:00
Minor formatting and cosmetic changes
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
ca60937cf9
commit
45e719983f
|
@ -4903,7 +4903,7 @@ static int ssl_bitmask_check( unsigned char *mask, size_t len )
|
|||
if( ( mask[len / 8] & ( 1 << ( 7 - i ) ) ) == 0 )
|
||||
return( BITMASK_CHECK_FAILED );
|
||||
|
||||
return( 0 );
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
/* msg_len does not include the handshake header */
|
||||
|
@ -7168,7 +7168,7 @@ static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
|
|||
|
||||
digest_len = mbedtls_md_get_size( digest_info );
|
||||
if( digest_len > MBEDTLS_SSL_PEER_CERT_DIGEST_MAX_LEN )
|
||||
return( 0x75555555 );
|
||||
return( PEER_CRT_CHANGED );
|
||||
|
||||
ret = mbedtls_md( digest_info, crt_buf, crt_buf_len, tmp_digest );
|
||||
if( ret != 0 )
|
||||
|
|
|
@ -209,7 +209,6 @@ int uECC_verify(const uint8_t *public_key, const uint8_t *message_hash,
|
|||
volatile unsigned hash_size_dup = hash_size;
|
||||
volatile const uint8_t *signature_dup = signature;
|
||||
|
||||
|
||||
uECC_word_t _public[NUM_ECC_WORDS * 2];
|
||||
uECC_word_t r[NUM_ECC_WORDS], s[NUM_ECC_WORDS];
|
||||
wordcount_t num_words = NUM_ECC_WORDS;
|
||||
|
|
Loading…
Reference in a new issue