Skip to content
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

[crypto] Log PSA crypto error codes in more places #33403

Merged
merged 1 commit into from
May 10, 2024

Conversation

Damian-Nordic
Copy link
Contributor

Log PSA crypto error codes in more places to make it easier to catch and analyze crypto misconfiguration, such as too low number of available key slots.

Log PSA crypto error codes in more places to make it easier
to catch and analyze crypto misconfiguration, such as too
low number of available key slots.

Signed-off-by: Damian Krolik <[email protected]>
Copy link

github-actions bot commented May 10, 2024

PR #33403: Size comparison from 0d67568 to c2f9f13

Increases (2 builds for nrfconnect)
platform target config section 0d67568 c2f9f13 change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1061448 1061528 80 0.0
text 773200 773272 72 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1009104 1009168 64 0.0
text 734748 734816 68 0.0
Decreases (2 builds for efr32)
platform target config section 0d67568 c2f9f13 change % change
efr32 lighting-app BRD4187C (read/write) 1072188 1072180 -8 -0.0
.text 888720 888712 -8 -0.0
lock-app BRD4338a (read/write) 962916 962908 -8 -0.0
.text 701008 701000 -8 -0.0
Full report (80 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
platform target config section 0d67568 c2f9f13 change % change
bl602 lighting-app bl602 (read/write) 1444738 1444738 0 0.0
.bss 85776 85776 0 0.0
.data 9512 9512 0 0.0
.rodata 159364 159364 0 0.0
.text 1109424 1109424 0 0.0
bl602+mfd (read/write) 1459162 1459162 0 0.0
.bss 85952 85952 0 0.0
.data 9488 9488 0 0.0
.rodata 158324 158324 0 0.0
.text 1124742 1124742 0 0.0
bl602+rpc (read/write) 1492386 1492386 0 0.0
.bss 93824 93824 0 0.0
.data 9888 9888 0 0.0
.rodata 166932 166932 0 0.0
.text 1141070 1141070 0 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1210387 1210387 0 0.0
.bss 11185 11185 0 0.0
.data 3712 3712 0 0.0
.rodata 108884 108884 0 0.0
.text 979596 979596 0 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1221203 1221203 0 0.0
.bss 11361 11361 0 0.0
.data 3688 3688 0 0.0
.rodata 107824 107824 0 0.0
.text 991350 991350 0 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1301851 1301851 0 0.0
.bss 19669 19669 0 0.0
.data 4248 4248 0 0.0
.rodata 124256 124256 0 0.0
.text 1054304 1054304 0 0.0
bl706-eth (read/write) 1026617 1026617 0 0.0
.bss 23760 23760 0 0.0
.data 3256 3256 0 0.0
.rodata 102056 102056 0 0.0
.text 769192 769192 0 0.0
bl706-wifi (read/write) 1262386 1262386 0 0.0
.bss 10645 10645 0 0.0
.data 3704 3704 0 0.0
.rodata 123048 123048 0 0.0
.text 1002182 1002182 0 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1179708 1179708 0 0.0
.bss 16396 16396 0 0.0
.data 5072 5072 0 0.0
.rodata 102888 102888 0 0.0
.text 972454 972454 0 0.0
bl702l+mfd (read/write) 1191624 1191624 0 0.0
.bss 16572 16572 0 0.0
.data 5056 5056 0 0.0
.rodata 101828 101828 0 0.0
.text 984776 984776 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 798740 798740 0 0.0
(read/write) 177644 177644 0 0.0
.bss 99572 99572 0 0.0
.data 3596 3596 0 0.0
.rodata 85004 85004 0 0.0
.text 713472 713472 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 813976 813976 0 0.0
(read/write) 188116 188116 0 0.0
.bss 110060 110060 0 0.0
.data 3588 3588 0 0.0
.rodata 78576 78576 0 0.0
.text 735136 735136 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 803316 803316 0 0.0
(read/write) 182236 182236 0 0.0
.bss 104180 104180 0 0.0
.data 3588 3588 0 0.0
.rodata 105908 105908 0 0.0
.text 697144 697144 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 755564 755564 0 0.0
(read/write) 176596 176596 0 0.0
.bss 98304 98304 0 0.0
.data 3580 3580 0 0.0
.rodata 80660 80660 0 0.0
.text 674640 674640 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 741284 741284 0 0.0
(read/write) 176828 176828 0 0.0
.bss 98536 98536 0 0.0
.data 3580 3580 0 0.0
.rodata 76444 76444 0 0.0
.text 664576 664576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 606262 606262 0 0.0
(read/write) 209588 209588 0 0.0
.bss 202812 202812 0 0.0
.data 1652 1652 0 0.0
.rodata 89742 89742 0 0.0
.text 514396 514396 0 0.0
lock CC3235SF_LAUNCHXL (read only) 652150 652150 0 0.0
(read/write) 209844 209844 0 0.0
.bss 203208 203208 0 0.0
.data 1516 1516 0 0.0
.rodata 110502 110502 0 0.0
.text 539528 539528 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 (read/write) 742355 742355 0 0.0
.app_xip_area 660597 660597 0 0.0
.bss 75364 75364 0 0.0
.data 932 932 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-02 (read/write) 757999 757999 0 0.0
.app_xip_area 673041 673041 0 0.0
.bss 77220 77220 0 0.0
.data 2276 2276 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-03 (read/write) 757999 757999 0 0.0
.app_xip_area 673041 673041 0 0.0
.bss 77220 77220 0 0.0
.data 2276 2276 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW930739M2EVB-02 (read/write) 714211 714211 0 0.0
.app_xip_area 637385 637385 0 0.0
.bss 70488 70488 0 0.0
.data 876 876 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
light-switch CYW30739B2-P5-EVK-01 (read/write) 679883 679883 0 0.0
.app_xip_area 602413 602413 0 0.0
.bss 70956 70956 0 0.0
.data 1052 1052 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-02 (read/write) 695215 695215 0 0.0
.app_xip_area 614633 614633 0 0.0
.bss 72812 72812 0 0.0
.data 2308 2308 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-03 (read/write) 695215 695215 0 0.0
.app_xip_area 614633 614633 0 0.0
.bss 72812 72812 0 0.0
.data 2308 2308 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
lock CYW30739B2-P5-EVK-01 (read/write) 698419 698419 0 0.0
.app_xip_area 617933 617933 0 0.0
.bss 74004 74004 0 0.0
.data 1020 1020 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-02 (read/write) 713831 713831 0 0.0
.app_xip_area 630233 630233 0 0.0
.bss 75860 75860 0 0.0
.data 2276 2276 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-03 (read/write) 713831 713831 0 0.0
.app_xip_area 630233 630233 0 0.0
.bss 75860 75860 0 0.0
.data 2276 2276 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
thermostat CYW30739B2-P5-EVK-01 (read/write) 660955 660955 0 0.0
.app_xip_area 586501 586501 0 0.0
.bss 68164 68164 0 0.0
.data 828 828 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-02 (read/write) 676599 676599 0 0.0
.app_xip_area 598937 598937 0 0.0
.bss 70028 70028 0 0.0
.data 2172 2172 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
CYW30739B2-P5-EVK-03 (read/write) 676599 676599 0 0.0
.app_xip_area 598937 598937 0 0.0
.bss 70028 70028 0 0.0
.data 2172 2172 0 0.0
.rodata 0 0 0 0.0
.text 2040 2040 0 0.0
efr32 lighting-app BRD4187C (read/write) 1072188 1072180 -8 -0.0
.bss 180008 180008 0 0.0
.data 3440 3440 0 0.0
.text 888720 888712 -8 -0.0
lock-app BRD4338a (read/write) 962916 962908 -8 -0.0
.bss 213092 213092 0 0.0
.data 29448 29448 0 0.0
.text 701008 701000 -8 -0.0
window-app BRD4187C (read/write) 1136024 1136024 0 0.0
.bss 164560 164560 0 0.0
.data 3344 3344 0 0.0
.text 968100 968100 0 0.0
esp32 all-clusters-app c3devkit (read only) 1215608 1215608 0 0.0
(read/write) 1751488 1751488 0 0.0
.dram0.bss 74624 74624 0 0.0
.dram0.data 13652 13652 0 0.0
.flash.rodata 253680 253680 0 0.0
.flash.text 1215608 1215608 0 0.0
.iram0.text 75570 75570 0 0.0
m5stack (read only) 1257267 1257267 0 0.0
(read/write) 538084 538084 0 0.0
.dram0.bss 81384 81384 0 0.0
.dram0.data 35196 35196 0 0.0
.flash.rodata 285584 285584 0 0.0
.flash.text 1251103 1251103 0 0.0
.iram0.text 125403 125403 0 0.0
linux air-purifier-app debug (read only) 2716493 2716493 0 0.0
(read/write) 132496 132496 0 0.0
.bss 47752 47752 0 0.0
.data 2272 2272 0 0.0
.data.rel.ro 76456 76456 0 0.0
.dynamic 608 608 0 0.0
.got 4576 4576 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 186768 186768 0 0.0
.text 2346741 2346741 0 0.0
all-clusters-app debug (read only) 6029289 6029289 0 0.0
(read/write) 484008 484008 0 0.0
.bss 136032 136032 0 0.0
.data 4560 4560 0 0.0
.data.rel.ro 335976 335976 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1440 1440 0 0.0
.rodata 353648 353648 0 0.0
.text 5236947 5236947 0 0.0
all-clusters-minimal-app debug (read only) 5312617 5312617 0 0.0
(read/write) 239960 239960 0 0.0
.bss 128896 128896 0 0.0
.data 4464 4464 0 0.0
.data.rel.ro 99512 99512 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 292394 292394 0 0.0
.text 4780339 4780339 0 0.0
bridge-app debug (read only) 4703193 4703193 0 0.0
(read/write) 220872 220872 0 0.0
.bss 119424 119424 0 0.0
.data 6240 6240 0 0.0
.data.rel.ro 88480 88480 0 0.0
.dynamic 624 624 0 0.0
.got 5232 5232 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 232810 232810 0 0.0
.text 4244915 4244915 0 0.0
chip-tool debug (read only) 12152225 12152225 0 0.0
(read/write) 524288 524288 0 0.0
.bss 95000 95000 0 0.0
.data 5122 5122 0 0.0
.data.rel.ro 416928 416928 0 0.0
.dynamic 624 624 0 0.0
.got 5736 5736 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 453753 453753 0 0.0
.text 10987763 10987763 0 0.0
chip-tool-ipv6only arm64 (read only) 11478860 11478860 0 0.0
(read/write) 590480 590480 0 0.0
.bss 104008 104008 0 0.0
.data 4520 4520 0 0.0
.data.rel.ro 457024 457024 0 0.0
.dynamic 512 512 0 0.0
.got 17240 17240 0 0.0
.init 24 24 0 0.0
.init_array 280 280 0 0.0
.rodata 357932 357932 0 0.0
.text 10236216 10236216 0 0.0
lighting-app debug+rpc+ui (read only) 5626721 5626721 0 0.0
(read/write) 229704 229704 0 0.0
.bss 120368 120368 0 0.0
.data 4896 4896 0 0.0
.data.rel.ro 96912 96912 0 0.0
.dynamic 672 672 0 0.0
.got 5864 5864 0 0.0
.init 27 27 0 0.0
.init_array 976 976 0 0.0
.rodata 356596 356596 0 0.0
.text 5018227 5018227 0 0.0
lock-app debug (read only) 4770233 4770233 0 0.0
(read/write) 208032 208032 0 0.0
.bss 114664 114664 0 0.0
.data 4192 4192 0 0.0
.data.rel.ro 82472 82472 0 0.0
.dynamic 624 624 0 0.0
.got 5184 5184 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 258730 258730 0 0.0
.text 4295107 4295107 0 0.0
ota-provider-app debug (read only) 4378105 4378105 0 0.0
(read/write) 196600 196600 0 0.0
.bss 114528 114528 0 0.0
.data 4368 4368 0 0.0
.data.rel.ro 71728 71728 0 0.0
.dynamic 624 624 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 211594 211594 0 0.0
.text 3968771 3968771 0 0.0
ota-requestor-app debug (read only) 4508809 4508809 0 0.0
(read/write) 200968 200968 0 0.0
.bss 115424 115424 0 0.0
.data 4768 4768 0 0.0
.data.rel.ro 74848 74848 0 0.0
.dynamic 624 624 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 217674 217674 0 0.0
.text 4088851 4088851 0 0.0
shell debug (read only) 3000425 3000425 0 0.0
(read/write) 159440 159440 0 0.0
.bss 63504 63504 0 0.0
.data 1424 1424 0 0.0
.data.rel.ro 88672 88672 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1112 1112 0 0.0
.rodata 190496 190496 0 0.0
.text 2630898 2630898 0 0.0
thermostat-no-ble arm64 (read only) 4496108 4496108 0 0.0
(read/write) 245880 245880 0 0.0
.bss 123000 123000 0 0.0
.data 3408 3408 0 0.0
.data.rel.ro 105920 105920 0 0.0
.dynamic 512 512 0 0.0
.got 8968 8968 0 0.0
.init 24 24 0 0.0
.init_array 448 448 0 0.0
.rodata 162100 162100 0 0.0
.text 3992760 3992760 0 0.0
tv-app debug (read only) 5830641 5830641 0 0.0
(read/write) 355288 355288 0 0.0
.bss 245136 245136 0 0.0
.data 6560 6560 0 0.0
.data.rel.ro 96312 96312 0 0.0
.dynamic 624 624 0 0.0
.got 5464 5464 0 0.0
.init 27 27 0 0.0
.init_array 1184 1184 0 0.0
.rodata 297354 297354 0 0.0
.text 5287011 5287011 0 0.0
tv-casting-app debug (read only) 9987905 9987905 0 0.0
(read/write) 345768 345768 0 0.0
.bss 159512 159512 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 176272 176272 0 0.0
.dynamic 624 624 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 1224 1224 0 0.0
.rodata 387576 387576 0 0.0
.text 9129315 9129315 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2537544 2537544 0 0.0
.bss 220808 220808 0 0.0
.data 5216 5216 0 0.0
.text 1500228 1500228 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1061448 1061528 80 0.0
bss 139161 139161 0 0.0
rodata 101776 101776 0 0.0
text 773200 773272 72 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1238920 1238920 0 0.0
bss 137517 137517 0 0.0
rodata 151408 151408 0 0.0
text 799972 799972 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1009104 1009168 64 0.0
bss 138059 138059 0 0.0
rodata 89032 89032 0 0.0
text 734748 734816 68 0.0
nxp contact k32w0+release (read only) 576668 576668 0 0.0
(read/write) 83172 83172 0 0.0
.bss 67888 67888 0 0.0
.data 2196 2196 0 0.0
.text 576132 576132 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 704340 704340 0 0.0
.bss 71240 71240 0 0.0
.data 2864 2864 0 0.0
.text 590856 590856 0 0.0
light k32w0+release (read only) 610888 610888 0 0.0
(read/write) 82640 82640 0 0.0
.bss 67336 67336 0 0.0
.data 2216 2216 0 0.0
.text 610352 610352 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 796240 796240 0 0.0
.bss 80776 80776 0 0.0
.data 2072 2072 0 0.0
.text 674024 674024 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 826256 826256 0 0.0
(read/write) 1827716 1827716 0 0.0
.bss 204340 204340 0 0.0
.data 2744 2744 0 0.0
.text 1612244 1612244 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 829352 829352 0 0.0
(read/write) 1748996 1748996 0 0.0
.bss 201268 201268 0 0.0
.data 2720 2720 0 0.0
.text 1536620 1536620 0 0.0
light cy8ckit_062s2_43012 (read only) 836072 836072 0 0.0
(read/write) 1667460 1667460 0 0.0
.bss 194732 194732 0 0.0
.data 2536 2536 0 0.0
.text 1461804 1461804 0 0.0
lock cy8ckit_062s2_43012 (read only) 809008 809008 0 0.0
(read/write) 1696124 1696124 0 0.0
.bss 221812 221812 0 0.0
.data 2520 2520 0 0.0
.text 1463404 1463404 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1134508 1134508 0 0.0
.bss 102636 102636 0 0.0
.data 856 856 0 0.0
.text 646888 646888 0 0.0
lock-app qpg6105+debug (read/write) 1094292 1094292 0 0.0
.bss 97308 97308 0 0.0
.data 868 868 0 0.0
.text 606676 606676 0 0.0
stm32 light STM32WB5MM-DK (read/write) 606185 606185 0 0.0
.bss 128500 128500 0 0.0
.data 688 688 0 0.0
.rodata 80612 80612 0 0.0
.text 386640 386640 0 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 834498 834498 0 0.0
bss 49884 49884 0 0.0
text 625074 625074 0 0.0
all-clusters-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 1096880 1096880 0 0.0
bss 101552 101552 0 0.0
text 797792 797792 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 47960 47960 0 0.0
(read/write) 1059372 1059372 0 0.0
bss 110048 110048 0 0.0
text 773132 773132 0 0.0
bridge-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 915020 915020 0 0.0
bss 92804 92804 0 0.0
text 656726 656726 0 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 836858 836858 0 0.0
bss 49928 49928 0 0.0
text 627494 627494 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 937848 937848 0 0.0
bss 77540 77540 0 0.0
text 704140 704140 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 29122 29122 0 0.0
(read/write) 1091212 1091212 0 0.0
bss 99876 99876 0 0.0
text 794600 794600 0 0.0
lock-app-dfu tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 911968 911968 0 0.0
bss 69208 69208 0 0.0
text 660900 660900 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 933824 933824 0 0.0
bss 92516 92516 0 0.0
text 675712 675712 0 0.0
pump-app tlsr9258a (read only) 52568 52568 0 0.0
(read/write) 831456 831456 0 0.0
bss 58172 58172 0 0.0
text 621538 621538 0 0.0
pump-controller-app tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 800552 800552 0 0.0
bss 56108 56108 0 0.0
text 599410 599410 0 0.0
shell tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 676304 676304 0 0.0
bss 73388 73388 0 0.0
text 461802 461802 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 844718 844718 0 0.0
bss 51556 51556 0 0.0
text 634162 634162 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 32220 32220 0 0.0
(read/write) 859377 859377 0 0.0
bss 59724 59724 0 0.0
text 642950 642950 0 0.0
thermostat tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 826100 826100 0 0.0
bss 56432 56432 0 0.0
text 618972 618972 0 0.0
window-covering tlsr9258a (read only) 52568 52568 0 0.0
(read/write) 836144 836144 0 0.0
bss 58388 58388 0 0.0
text 623806 623806 0 0.0

@mergify mergify bot merged commit 8122739 into project-chip:master May 10, 2024
66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants