-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Run init/free functions to the backup context for GetDigest. #19233
Merged
andy31415
merged 1 commit into
project-chip:master
from
hsusid:mbedtls-sha256-get-digest-fix
Jun 7, 2022
Merged
Run init/free functions to the backup context for GetDigest. #19233
andy31415
merged 1 commit into
project-chip:master
from
hsusid:mbedtls-sha256-get-digest-fix
Jun 7, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hsusid
changed the title
Run init/free to the backup context for GetDigest.
Run init/free functions to the backup context for GetDigest.
Jun 6, 2022
andy31415
approved these changes
Jun 6, 2022
I don't think this is platform-specific. https://tls.mbed.org/api/sha256_8h.html#a9a43913c6b6804ed84b432665af01f35 says
|
PR #19233: Size comparison from 94c51bb to dfe9a87 Increases (25 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
Decreases (3 builds for cc13x2_26x2)
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
bzbarsky-apple
approved these changes
Jun 6, 2022
CYW30739 platform specific SHA256 implementations need mbedtls_sha256_init/mbedtls_sha256_free functions called to do initialization and cleanup.
hsusid
force-pushed
the
mbedtls-sha256-get-digest-fix
branch
from
June 7, 2022 08:39
dfe9a87
to
5b4fc45
Compare
rebase |
pullapprove
bot
requested review from
arkq,
Byungjoo-Lee,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
gjc13,
hawk248,
harsha-rajendran,
jelderton,
jepenven-silabs,
jmartinez-silabs,
lazarkov,
LuDuda,
msandstedt,
saurabhst,
selissia,
tecimovic and
vijs
June 7, 2022 09:06
PR #19233: Size comparison from 55ab764 to 5b4fc45 Increases (27 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
Decreases (5 builds for cc13x2_26x2)
Full report (30 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
hsusid
added a commit
to hsusid/connectedhomeip
that referenced
this pull request
Jun 7, 2022
CYW30739 platform specific SHA256 implementations need mbedtls_sha256_init/mbedtls_sha256_free functions called to do initialization and cleanup.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
CYW30739 platform specific SHA256 implementations need
mbedtls_sha256_init
andmbedtls_sha256_free
functions called to do initialization and cleanup.Change overview
mbedtls_sha256_init
before cloning the original context to the backup context.mbedtls_sha256_free
after the backup context is no longer needed.Testing
chip-tool pairing