From 45e719983f0e3f55813196fd992f8bc75e5a5d38 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Wed, 8 Jul 2020 10:09:44 -0400 Subject: [PATCH] Minor formatting and cosmetic changes Signed-off-by: Andrzej Kurek --- library/ssl_tls.c | 4 ++-- tinycrypt/ecc_dsa.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 597273b98..e4db522b5 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -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 ) diff --git a/tinycrypt/ecc_dsa.c b/tinycrypt/ecc_dsa.c index 15098e8ff..2a676dc8f 100644 --- a/tinycrypt/ecc_dsa.c +++ b/tinycrypt/ecc_dsa.c @@ -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;