Minor formatting and cosmetic changes

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2020-07-08 10:09:44 -04:00
parent ca60937cf9
commit 45e719983f
No known key found for this signature in database
GPG key ID: 89A90840DC388527
2 changed files with 2 additions and 3 deletions

View file

@ -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 )

View file

@ -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;