1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

46415 Commits

Author SHA1 Message Date
krzysztof-cabaj
18f63f7451 boards/nucleo64-g0: add pinout source 2024-10-18 18:02:00 +02:00
krzysztof-cabaj
ecc5b60e30 boards/nucleo64-c0: add pinout source 2024-09-25 16:28:41 +02:00
benpicco
5c06502c4d
Merge pull request #20835 from xnumad/nib-route-hide-on-link-prefixes
gnrc/ipv6: `nib route`: hide off-link PLEs
2024-09-24 15:42:48 +00:00
Marian Buschsieweke
4e17dbae20
Merge pull request #20866 from maribu/CODING_CONVENTIONS.md/indent-pp-directives
CODING_CONVENTIONS.md: Add preprocessor directive formatting
2024-09-24 08:52:49 +00:00
Marian Buschsieweke
f431aab856
CODING_CONVENTIONS.md: Add preprocessor directive formatting
This explicitly spells out what informally has been the coding
convention for some time on preprocessor directives, making it
more transparent and easier to find.

This is particularly useful as the code base has at least three
different styles. Deducing what actually is the current policy
would require a details look at how the style has changed over
time, rather than being obvious from a quick `grep` over the
code base.
2024-09-23 17:08:05 +02:00
Marian Buschsieweke
20f7328df4
Merge pull request #20864 from maribu/cpu/samd5x/cpu-conding-convention
cpu/samd5x/cpu.c: reformat code
2024-09-19 07:33:10 +00:00
xnumad
92b77ed944 gnrc_ipv6_nib: refactor
Co-Authored-By: benpicco <benpicco@googlemail.com>
2024-09-18 16:09:58 +02:00
mguetschow
5d958957be
Merge pull request #20854 from netd-tud/psa-headers
Various PSA Crypto fixes
2024-09-18 08:10:44 +00:00
Marian Buschsieweke
20e218680c
cpu/samd5x/cpu.c: reformat code
This formats the code to improve readability and apply the coding
convention. This is a whitespace only change that will not change
generated binaries.
2024-09-17 22:07:46 +02:00
Armin Wolf
fe56b7d19c sys/psa_crypto: Implement PSA_MAC_MAX_SIZE()
This support macro is necessary for full MAC support.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-17 21:37:10 +02:00
Armin Wolf
98d268040a sys/psa_crypto: Implement PSA_HASH_BLOCK_LENGTH()
The initial implementation was inspired by MbedTLS, with the
addition of the MD2 and MD4 algorithms.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-17 21:37:10 +02:00
Armin Wolf
cf66f712a6 tests/sys/psa_crypto: Add tests for key usage flags
Add some tests to verify that when creating or importing keys,
the usage flags PSA_KEY_USAGE_SIGN_HASH/PSA_KEY_USAGE_VERIFY_HASH
automatically set the usage flags PSA_KEY_USAGE_SIGN_MESSAGE/
PSA_KEY_USAGE_VERIFY_MESSAGE on the key.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-17 21:36:39 +02:00
benpicco
0cea359db6
Merge pull request #20856 from dylad/pr/cpu/saml1x/compat_headers
boards/saml1x: convert bitfields to new masks name
2024-09-13 16:15:30 +00:00
benpicco
870fe04dfa
Merge pull request #20858 from benpicco/suit_multi_key-2
makefiles/suit: store public keys, make it easier to work with multiple keys
2024-09-12 20:39:28 +00:00
Benjamin Valentin
765dd68753 makefiles/suit: use OpenSSL to generate key
Co-authored-by: Fabian Hüßler <fabian.huessler@ml-pa.com>
2024-09-12 21:54:00 +02:00
Marian Buschsieweke
1fa7db2eda
Merge pull request #20855 from benpicco/coap_block_finish-fix
nanocoap: always write at least 1 byte in coap_block2_finish()
2024-09-12 15:01:19 +00:00
Benjamin Valentin
99285d3ec5 makefiles/suit: add support for multiple & encrypted signing key 2024-09-11 19:28:39 +02:00
Benjamin Valentin
fbf1cd16a6 makefiles/suit: store public keys
This makes it easier to work with encrypted keys and multiple keys.
The firmware binary can contain multiple public keys that are used
to verify the manifest.
The use case is that we want to include the production public key
in the debug build, so we can seamlessly update to the production
version without re-flashing the device.

If the public keys is always generated on the fly, this would still
require the production key password even for the debug build.

Instead if we store the (unencrypted) public key, we can always
include it in the debug build.
2024-09-11 17:57:59 +02:00
benpicco
24ad7e72c8
Merge pull request #20859 from krzysztof-cabaj/nucleo-144-pinout-source
boards/nucleo144: add pinout source
2024-09-11 12:36:45 +00:00
benpicco
74ddc4abfb
Merge pull request #20860 from chrysn-pull-requests/update-docker
Update docker image (and document the process)
2024-09-11 09:39:38 +00:00
chrysn
e774040df6 doc: Align c2rust installation with docker image setup 2024-09-11 10:26:29 +02:00
chrysn
6dc2037767 makefiles/docker: Update docker image 2024-09-11 10:26:11 +02:00
chrysn
f6477370df makefiles/doc: Explain where docker image hash values come from 2024-09-11 10:13:36 +02:00
krzysztof-cabaj
b74c4236c8 boards/nucleo144-l4: add pinout source 2024-09-10 17:44:04 +02:00
krzysztof-cabaj
911cc15129 boards/nucleo144-f7: add source to pinouts 2024-09-10 17:30:16 +02:00
Teufelchen
e31e814cff
Merge pull request #20852 from fabian18/nanocoap_sock_get_non
sys/net/application_layer/nanocoap: add `nanocoap_sock_get_non()`
2024-09-10 15:06:27 +00:00
Fabian Hüßler
02e513e04b sys/include/net: better documentation of nanocoap_sock_request_cb 2024-09-10 16:44:19 +02:00
Fabian Hüßler
d3417dad65 tests/net/nanocoap_cli: add get_non command 2024-09-10 16:43:45 +02:00
Fabian Hüßler
95b46ee2a5 sys/net/application_layer/nanocoap: add nanocoap_sock_get_non 2024-09-10 16:43:44 +02:00
krzysztof-cabaj
882af4ea9d boards/nucleo144-f4: add pinout source 2024-09-10 11:27:49 +02:00
krzysztof-cabaj
841d0a0dfd boards/nucleo144-f3 add pinout source 2024-09-09 16:09:19 +02:00
krzysztof-cabaj
9ecbeae90e boards/nucleo144-f2: add pinout source 2024-09-09 14:03:45 +02:00
Dylan Laduranty
82ce32ee10 boards/saml1x: convert bitfields to new masks name
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2024-09-08 15:17:34 +02:00
Benjamin Valentin
66fe083d9b nanocoap: always write at least 1 byte in coap_block2_finish()
The CoAP block option gets written twice:
First a 'dummy' value is written by `coap_opt_add_block2()`, later this gets
overwritten by the real option value by coap_block2_finish().

The problem arises when the size of the option changes.
If the option ends up smaller than the dummy, we have garbage bytes after the
real option value, corrupting the packet.

To mitigate this, always write at least one option byte (which will be a 0 byte)
to ensure the dummy data is overwritten.

fixes #20686
2024-09-07 16:11:23 +02:00
Armin Wolf
82b07318ec sys/psa_crypto: Fix missing usage flags when creating new keys
The PSA crypto specification states that when creating keys,
the usage flags PSA_KEY_USAGE_SIGN_HASH/PSA_KEY_USAGE_VERIFY_HASH
automatically set the usage flags
PSA_KEY_USAGE_SIGN_MESSAGE/PSA_KEY_USAGE_VERIFY_MESSAGE on the key.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-07 12:12:22 +02:00
Armin Wolf
d0c4e01ca3 sys/psa_crypto: Move PSA status definition to separate file
When psa_status_t is defined inside crypto_types.h, then all
users of psa_status_t are forced to pull the full range of PSA
Crypto API type definitions.

This however means that psa_status_t cannot be used when defining
those PSA Crypto API types, since doing so would create a cycle.

Fix this by moving the PSA status definitions into a separate header
file which additionally is compatible with the PSA Status code API.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-07 12:12:19 +02:00
benpicco
ed9faa9f06
Merge pull request #20839 from mguetschow/nrf802154-rssi
cpu/nrf52: fix RSSI calculation in nrf802154_radio
2024-09-06 14:23:20 +00:00
benpicco
7dbb298766
Merge pull request #20372 from xnumad/rtr_ltime-test
tests/gnrc_ipv6_nib: rtr_ltime test
2024-09-06 11:36:39 +00:00
Dylan Laduranty
821a7e8c9f
Merge pull request #20851 from krzysztof-cabaj/nucleo-g474re-MCU-table
boards/nucleo-g474re: add MCU table
2024-09-05 09:38:10 +00:00
krzysztof-cabaj
6b55e1c93b boards/nucleo-g474re: add MCU table 2024-09-04 17:26:31 +02:00
benpicco
73e90c5049
Merge pull request #20371 from xnumad/nib-next-hop-addr
gnrc_ipv6_nib: Force unspecified next hop addresses
2024-09-02 12:13:28 +00:00
Dylan Laduranty
3046b07c14
Merge pull request #20848 from krzysztof-cabaj/nucleo-g431rb-MCU-table
boards/nucleo-g431rb: add MCU table to documentation
2024-09-02 08:19:07 +00:00
krzysztof-cabaj
8cd4369d00 boards/nucleo-g474re: add details of pinout source 2024-08-31 22:49:34 +02:00
xnumad
8b73628dc8 gnrc_ipv6_nib: refactor
Invert condition, add assert
2024-08-31 10:40:17 +02:00
xnumad
560d8c8ee5 gnrc_ipv6_nib: test: Force unspecified next hop addresses 2024-08-31 10:40:17 +02:00
krzysztof-cabaj
488b194714 boards/nucleo-g431rb: add MCU table 2024-08-30 16:24:27 +02:00
benpicco
f2076ad21e
Merge pull request #20846 from fzi-haxel/pr/lvgl-native64
pkg/lvgl: Increase default LV_MEM_SIZE for 64 bit and enable tests for native64
2024-08-30 08:47:31 +00:00
krzysztof-cabaj
ef523555f5 boards/nucleo-g431rb: add pinout source details 2024-08-29 21:36:01 +02:00
Dylan Laduranty
481b5803c6
Merge pull request #20842 from mariemC/fix/rtt_reset_after_hibernation
cpu/sam0_common/periph: fix rtt reset after hibernation
2024-08-29 15:26:37 +00:00
mariemC
7df7886a69 cpu/sam0_common/periph: fix rtt reset after hibernation 2024-08-29 17:08:54 +02:00