mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 14:45:32 +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
|
@ -7168,7 +7168,7 @@ static int ssl_check_peer_crt_unchanged( mbedtls_ssl_context *ssl,
|
||||||
|
|
||||||
digest_len = mbedtls_md_get_size( digest_info );
|
digest_len = mbedtls_md_get_size( digest_info );
|
||||||
if( digest_len > MBEDTLS_SSL_PEER_CERT_DIGEST_MAX_LEN )
|
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 );
|
ret = mbedtls_md( digest_info, crt_buf, crt_buf_len, tmp_digest );
|
||||||
if( ret != 0 )
|
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 unsigned hash_size_dup = hash_size;
|
||||||
volatile const uint8_t *signature_dup = signature;
|
volatile const uint8_t *signature_dup = signature;
|
||||||
|
|
||||||
|
|
||||||
uECC_word_t _public[NUM_ECC_WORDS * 2];
|
uECC_word_t _public[NUM_ECC_WORDS * 2];
|
||||||
uECC_word_t r[NUM_ECC_WORDS], s[NUM_ECC_WORDS];
|
uECC_word_t r[NUM_ECC_WORDS], s[NUM_ECC_WORDS];
|
||||||
wordcount_t num_words = NUM_ECC_WORDS;
|
wordcount_t num_words = NUM_ECC_WORDS;
|
||||||
|
|
Loading…
Reference in a new issue