-
Notifications
You must be signed in to change notification settings - Fork 96
Disallow use of invalid contexts #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fe96fbe
b281f74
252ef28
ab43997
a0f625a
11aa7ee
36ee5d0
e236c2a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6529,7 +6529,7 @@ static void ssl_calc_finished_tls_sha256( | |
unsigned char padbuf[32]; | ||
#if defined(MBEDTLS_USE_PSA_CRYPTO) | ||
size_t hash_size; | ||
psa_hash_operation_t sha256_psa; | ||
psa_hash_operation_t sha256_psa = PSA_HASH_OPERATION_INIT; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using What are the advantages of different methods? In particular, why are we using on line 1449 and 1492 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In most cases, the choice is indifferent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I personally prefer using the macro everywhere, but previous authors inside library/ssl_tls.c liked the function. There is no functional difference in this case. |
||
psa_status_t status; | ||
#else | ||
mbedtls_sha256_context sha256; | ||
|
@@ -6605,7 +6605,7 @@ static void ssl_calc_finished_tls_sha384( | |
unsigned char padbuf[48]; | ||
#if defined(MBEDTLS_USE_PSA_CRYPTO) | ||
size_t hash_size; | ||
psa_hash_operation_t sha384_psa; | ||
psa_hash_operation_t sha384_psa = PSA_HASH_OPERATION_INIT; | ||
psa_status_t status; | ||
#else | ||
mbedtls_sha512_context sha512; | ||
|
@@ -10203,7 +10203,7 @@ int mbedtls_ssl_get_key_exchange_md_tls1_2( mbedtls_ssl_context *ssl, | |
mbedtls_md_type_t md_alg ) | ||
{ | ||
psa_status_t status; | ||
psa_hash_operation_t hash_operation; | ||
psa_hash_operation_t hash_operation = PSA_HASH_OPERATION_INIT; | ||
psa_algorithm_t hash_alg = mbedtls_psa_translate_md( md_alg ); | ||
|
||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "Perform PSA-based computation of digest of ServerKeyExchange" ) ); | ||
|
Uh oh!
There was an error while loading. Please reload this page.