-
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
Make Darwin CHIPKeypair usable in a few more cases. #18458
Merged
bzbarsky-apple
merged 1 commit into
project-chip:master
from
bzbarsky-apple:CHIPKeypair-better
May 16, 2022
Merged
Make Darwin CHIPKeypair usable in a few more cases. #18458
bzbarsky-apple
merged 1 commit into
project-chip:master
from
bzbarsky-apple:CHIPKeypair-better
May 16, 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
pullapprove
bot
requested review from
anush-apple,
arkq,
Byungjoo-Lee,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
franck-apple,
gjc13,
hawk248,
harsha-rajendran,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
jtung-apple,
kghost,
kpschoedel,
lazarkov,
LuDuda,
mlepage-google and
mrjerryjohns
May 14, 2022 06:08
pullapprove
bot
requested review from
mspang,
rgoliver,
robszewczyk,
saurabhst,
selissia,
tecimovic,
turon,
vijs,
vivien-apple,
wbschiller,
woody-apple,
xylophone21 and
yufengwangca
May 14, 2022 06:09
PR #18458: Size comparison from b4509f3 to 2f0b2dc Full report (35 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
bzbarsky-apple
force-pushed
the
CHIPKeypair-better
branch
from
May 14, 2022 07:07
2f0b2dc
to
ad60989
Compare
PR #18458: Size comparison from f829356 to ad60989 Full report (26 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
tcarmelveilleux
approved these changes
May 14, 2022
emargolis
reviewed
May 14, 2022
emargolis
approved these changes
May 14, 2022
PR #18458: Size comparison from f829356 to 1b8bee8 Increases (2 builds for nrfconnect, telink)
Full report (26 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
1) Instead of having CHIPKeypair sign a digest, just have it sign a message. This tends to be more widely supported by cryptographic libraries. 2) Support the CHIPKeypair providing us either a raw SEC1 signature or an ASN.1 DER-encoded signature, since different cryptographic libraries may have different output signature formats. 3) Fix an incorrect comment in CHIPCryptoPAL.h.
bzbarsky-apple
force-pushed
the
CHIPKeypair-better
branch
from
May 16, 2022 20:18
1b8bee8
to
5de8f18
Compare
sagar-apple
approved these changes
May 16, 2022
PR #18458: Size comparison from bf909a5 to 5de8f18 Full report (37 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
msandstedt
approved these changes
May 16, 2022
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.
Instead of having CHIPKeypair sign a digest, just have it sign a
message. This tends to be more widely supported by cryptographic
libraries.
Support the CHIPKeypair providing us either a raw SEC1 signature or
an ASN.1 DER-encoded signature, since different cryptographic
libraries may have different output signature formats.
Fix an incorrect comment in CHIPCryptoPAL.h.
Problem
See above.
Change overview
See above.
Testing
Verified that both chip-tool-darwin (which uses the "raw" signature bit) and XCTest tests (which use the "DER" signature bit) work.