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

17948 Commits

Author SHA1 Message Date
Gaëtan Harter
fa33eacd1f
crypto/ccm: fix _fits_in_nbytes function
Function is broken with num_bytes >= 4.

Could happen when storing input_len with len_encoding >= 4.
It can take values from 2 to 8, so make it work for cases it would overflow.
2018-05-07 15:08:00 +02:00
Gaëtan Harter
ee311a331b
crypto/ccm: refactor input_len check in a function
Refactorg checking that length can be stored in a number of bytes to a
subfunction.
2018-05-07 15:08:00 +02:00
Gaëtan Harter
a47e5e427e
tests/ccm: add test for input_len check 2018-05-07 15:08:00 +02:00
Wentao Shang
89023b3499
crypto/ccm: fix input_len check
Maximum input_len depends only on length_encoding and not auth_data_len.
The current length_max value was also wrong.

RFC3610 page 2

   3. The message m, consisting of a string of l(m) octets where 0 <=
      l(m) < 2^(8L).  The length restriction ensures that l(m) can be
      encoded in a field of L octets.
2018-05-07 15:08:00 +02:00
b1eb793274 pkg/qDSA: disble arm asm version for cortexm > 0plus 2018-05-07 14:24:26 +02:00
Gunar Schorcht
af226d4fec enc28j60: fix compilation with l2 stats enabled 2018-05-07 13:42:03 +02:00
Martine Lenders
8a46cf611e gcoap: make message queue size configurable 2018-05-06 16:41:43 +02:00
Joakim Nohlgård
321aa567d6 kinetis: Memory segment attribute fixes
vectors and flashsec memory segments will not be considered for orphan
sections if rx is only given for the rom segment.
2018-05-05 08:11:00 +02:00
9020767c2d
Merge pull request #9071 from cladmi/pr/make/riottools/arduino
sys/arduino: use RIOTTOOLS variable
2018-05-04 23:10:07 +02:00
Francisco Acosta
5519f06e1e
Merge pull request #8897 from ZetaR60/RIOT_atmega_race
tests/thread_race: add test for race conditions
2018-05-04 19:38:27 +02:00
Matthew Blue
8d40e3c481 tests/thread_race: add test for race conditions 2018-05-04 12:49:01 -04:00
Cenk Gündoğan
2687e87e0a
Merge pull request #9073 from miri64/gnrc_rpl/fix/ft-del
gnrc_rpl: remove route before updating it
2018-05-04 18:00:05 +02:00
Martine Lenders
3d821ee195 gnrc_rpl: remove route before updating it
The "new" forwarding table does not update an old route but just adds
another as long as it is not *exactly* the same. However, the RPL
adaptation missed to remove the old route so RPL got easily confused
about where it actually needed to send packets.
2018-05-04 17:46:02 +02:00
48d17e68de
Merge pull request #9072 from cladmi/pr/make/riottools/pkg
pkg: use RIOTTOOLS variable
2018-05-04 15:35:36 +02:00
c313637db6
Merge pull request #9069 from cladmi/pr/make/riottools/tests
tests: use RIOTTOOLS variable
2018-05-04 15:31:06 +02:00
Vincent Dupont
4e86e12247 cpu/stm32_common: add info-stm32 make target 2018-05-04 15:30:56 +02:00
Vincent Dupont
51dcf27904 cpu/stm32f4: fix support for whole STM32F413 line 2018-05-04 15:30:56 +02:00
Vincent Dupont
9c03ff71b7 cpu/stm32f4: add support for STM32F423 line 2018-05-04 15:30:56 +02:00
3474d052b9 boards/iotlab: fix saul gpio configuration
take into account inversion of LEDs and initialize them cleared
2018-05-04 15:07:20 +02:00
Hauke Petersen
9815697b3e cpu/nrf5x: define nrfmin feature in nrf5x_common 2018-05-04 13:47:46 +02:00
Hauke Petersen
1aaec8abf7 boards/nrf51-based: remove unused RADIO_IRQ_PRIO 2018-05-04 13:46:29 +02:00
Francisco Acosta
53c3f833af
Merge pull request #8904 from ZetaR60/RIOT_atmega_race_fix_alt
cpu/atmega_common: return to non-interrupt context swaps
2018-05-04 12:08:59 +02:00
Gaëtan Harter
1de1830108
pkg: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 11:34:38 +02:00
Gaëtan Harter
14ac80e15a
sys/arduino: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 11:16:48 +02:00
Gaëtan Harter
154fbcff35
tests: use RIOTTOOLS variable
Follow up to #9067 and part of #8821
2018-05-04 10:52:26 +02:00
Matthew Blue
d3d2f0212d boards/waspmote-pro: remove context swap defines 2018-05-03 17:29:28 -04:00
Matthew Blue
dee0e659cb boards/mega-xplained: remove context swap defines 2018-05-03 17:29:28 -04:00
Matthew Blue
55a7d8f83d boards/jiminy-mega256rfr2: remove context swap defines 2018-05-03 17:29:28 -04:00
Sebastian Meiling
00a974d950
Merge pull request #9067 from cladmi/pr/make/riottools
make: add and export RIOTTOOLS directory
2018-05-03 19:51:09 +02:00
smlng
a83d53f2d9
make: add and export RIOTTOOLS directory
Replacing usage will come in further commits/PRs.
2018-05-03 15:56:00 +02:00
f9c75d0df7
Merge pull request #8915 from ZetaR60/RIOT_ads101x
drivers/ads101x: support for ADCs
2018-05-03 08:31:03 +02:00
Matthew Blue
2979626ef6 boards/common/atmega: gracefully handle CKDIV8 fuse 2018-05-02 14:05:33 -04:00
Francisco Acosta
d52186a169
Merge pull request #9055 from bergzand/pr/cbor/include_mv
cbor: Move header to cbor subdirectory
2018-05-02 13:51:38 +02:00
660fc029f4
Merge pull request #9059 from checorone/master
boards/nucleo-f401: configure USART1 port
2018-05-02 08:34:57 +02:00
Dmitriy One
adf495ad10 boards/nucleo-f401: configure USART1 port 2018-05-01 16:30:22 +03:00
674513c5f2
Merge pull request #9041 from aabadie/pr/doc/flake8_generate-changelog
doc: fix flake8 issues in generate changelog script
2018-05-01 11:30:22 +02:00
b81b12de4e
cbor: Move header to cbor subdirectory
Prevents conflicts when multiple modules/packages provide a `cbor.h`
header.
2018-05-01 11:12:39 +02:00
95c2033802
Merge pull request #8980 from aabadie/pr/examples/readme_gnrc_minimal
examples/gnrc_minimal: remove obsolete reference to XBee from README
2018-04-30 14:15:16 +02:00
b81d6fada2
Merge pull request #9047 from gebart/pr/pulse-counter-doxygen
pulse_counter: Editorial changes to docs
2018-04-28 18:43:26 +02:00
Joakim Nohlgård
fef0be8c4c pulse_counter: Editorial changes to docs 2018-04-28 15:37:41 +02:00
e13b1b7dd2
Merge pull request #9045 from cladmi/pr/tests/thread_flags/wsn430
tests/thread_flags: fix printf on 16bit platform
2018-04-28 14:49:47 +02:00
Joakim Nohlgård
9c85ce1916
Merge pull request #8733 from gebart/pr/matstat
matstat: Integer mathematical statistics library
2018-04-28 09:37:02 +02:00
Joakim Nohlgård
5c59f6a39a unittests: Add tests for matstat library 2018-04-28 08:03:35 +02:00
Joakim Nohlgård
6927260973 sys/matstat: Integer mathematical statistics library 2018-04-28 08:03:35 +02:00
Gaëtan Harter
8edd9a924c
tests/thread_flags: fix printf on 16bit platform
Diff output was truncated to a 16b unsigned on wsn430 which made tests fail

    main: timeout triggered. time passed: 34581us

Instead of

    main: timeout triggered. time passed: 100117us
2018-04-27 21:08:20 +02:00
Matthew Blue
a6ef6ddbfd boards/common/arduino-atmega: remove context swap defines 2018-04-27 14:13:34 -04:00
Matthew Blue
ac2b643308 cpu/atmega_common: return to non-interrupt context swaps 2018-04-27 14:13:34 -04:00
b522d5e6ee
Merge pull request #9033 from cladmi/pr/tests/pkg_tiny-asn/blacklist/wsn430
tests/pkg_tiny-asn1: blacklist wsn430 boards
2018-04-27 15:22:39 +02:00
9001b165f6 doc: fix flake8 in generate changelog script 2018-04-27 15:15:09 +02:00
Joakim Nohlgård
31dff69867
Merge pull request #9028 from Josar/pr/sizeflag
make: add (optional) SIZEFLAGS variable
2018-04-27 13:03:50 +02:00