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

210 Commits

Author SHA1 Message Date
René Kijewski
caf5503486 Merge pull request #3235 from haukepetersen/add_md5
sys/hashes: added MD5 implementation
2015-07-13 22:59:09 +02:00
Martine Lenders
888bdd70c1 unittests: fix length of test data strings
Fixes #3371
2015-07-13 14:37:24 +02:00
Martine Lenders
67d6333c39 unittests: fix errors cought by address sanitizer 2015-07-13 11:21:42 +02:00
Peter Kietzmann
c3814a7127 Merge pull request #3316 from authmillenon/ng_pktbuf/fix/align
ng_pktbuf: fix alignment overwrite issue
2015-07-08 10:49:26 +02:00
43ecf6d2c3 tests: unittests: add some bitfield unit tests 2015-07-07 17:49:18 +02:00
Martine Lenders
057ad18f22 unittests: add test for packet buffer alignment issues 2015-07-05 00:22:14 +02:00
Martine Lenders
69992ee7eb Merge pull request #3293 from authmillenon/ng_inet_csum/fix/wrap-around
ng_inet_csum: fix double-wrap around of carry
2015-07-02 12:55:27 +02:00
Martine Lenders
6ce23a42f5 unittests: add test for ng_inet_csum() for double-wraparound 2015-07-02 12:06:31 +02:00
Martine Lenders
8b7a0c2613 unittests: add ng_ipv6_hdr_inet_csum test for initial sum overflows 2015-07-01 17:49:19 +02:00
Philipp Rosenkranz
1913b7ea66 Merge pull request #3229 from Kijewski/chacha
sys: add ChaCha stream cipher and PRNG
2015-06-28 21:13:59 +02:00
René Kijewski
2cf4253710 sys: add ChaCha stream cipher and PRNG
This implementation is optimized for a little code and data size, not
for speed. IMO the code is more readable than in the reference
implementation.

The biggest advantage of ChaCha over other stream ciphers is the very
little data usage with only 64 bytes of context, and its good encryption
speed.

Also part of this PR is pseudo-random number generator, that just
returns the keystream of a randomly initialized ChaCha context.
2015-06-28 18:32:04 +02:00
BytesGalore
db18e5760a fib: added check for passing NULL pointers to fib_get_next_hop() 2015-06-24 09:05:24 +02:00
haukepetersen
b708e423ed tests/unittest: added tests for MD5 2015-06-22 21:43:28 +02:00
Martine Lenders
82e54d0970 tests: adapt unittests for new pktqueue 2015-06-22 18:19:54 +02:00
René Kijewski
98aec32f6b ng_netif: more formats for ng_netif_addr_from_str 2015-06-13 13:38:11 +02:00
René Kijewski
7d3d8dee21 ng_netif: make const what is const 2015-06-12 21:53:59 +02:00
René Kijewski
64e0b8d8fb ng_netif: more tests for ng_netif_addr_from_str 2015-06-12 21:53:59 +02:00
BytesGalore
9079e30da0 sys/net/fib: added function to request a set of destination addresses 2015-06-02 16:42:47 +02:00
Lotte Steenbrink
fbc7f9ddc4 add simple test for fib_devel_get_lifetime() 2015-05-26 15:36:02 -07:00
Joakim Gebart
a6eda18099 unittests/ubjson: Use MUTEX_INIT to initialize mutexes 2015-05-26 21:28:31 +02:00
Joakim Gebart
41ef11c215 core: Remove atomic_set_return() 2015-05-26 21:24:10 +02:00
Martine Lenders
55a48f48cc Merge pull request #3060 from Lotterleben/ng_netif_tests_rm_warn
unittests: rm warning for tests-ipv6_netif
2015-05-25 23:26:18 +02:00
Martine Lenders
4310ab37ba Merge pull request #3048 from authmillenon/ipv6_netif/fix/get-best-src-mc
ipv6_netif: fix ng_ipv6_netif_find_best_src_addr() for multicast
2015-05-25 23:19:20 +02:00
Martine Lenders
6014853530 unittests: add unittests for getting multicast addresses 2015-05-25 22:48:36 +02:00
Martine Lenders
350b040d72 ng_netif: adapt ng_netif_get for holey lists 2015-05-25 22:02:44 +02:00
Lotte Steenbrink
486f8dd8e9 Merge pull request #3044 from Lotterleben/ipv6_ifs_no_duplicates
ng_ipv6_netif: no more duplicates if empty entries are found before
2015-05-23 02:12:49 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Lotte Steenbrink
0afcb620bd unittests: rm warning for tests-ipv6_netif 2015-05-19 10:15:58 -07:00
Lotte Steenbrink
705019f3dc unittests: add tests to ng_ipv6_netif_add concerning https://github.com/RIOT-OS/RIOT/issues/2965 2015-05-18 12:27:22 -07:00
Martine Lenders
5fe7b9a8d3 tests: adapt unittests 2015-05-16 15:03:17 +02:00
Lotte Steenbrink
09a67e050d ipv6_nc: no more duplicates if empty entries are found before 2015-05-14 08:27:15 -07:00
Martine Lenders
343bec5593 ipv6_nc: Make interface optional 2015-05-14 04:21:41 +02:00
Martine Lenders
d1c2f7f72b Merge pull request #2908 from authmillenon/ipv6_nc/enh/opt
ipv6_nc: prepare for NDP
2015-05-13 11:05:39 +02:00
Martine Lenders
fd48ccd5d4 unittests: add nrf51822 boards to BOARD_INSUFFICIENT_RAM 2015-05-12 20:06:09 +02:00
Martine Lenders
54c92c0424 unittests: adapt unittests for ipv6_nc API change 2015-05-12 20:06:09 +02:00
Martine Lenders
11e5fb3c9e Merge pull request #2728 from authmillenon/ipv6_netif/enh/auto-link-local
ipv6_netif: auto-add corresponding link-local addresses
2015-05-12 19:08:14 +02:00
Joakim Gebart
e9c567107d all: remove extra blank lines at the end 2015-05-09 09:10:08 +02:00
Joakim Gebart
25c2bdba84 atomic: Add unit tests for atomic counters 2015-05-07 18:52:13 +02:00
Martine Lenders
4741a01e36 Merge pull request #2721 from authmillenon/ipv6_nc/feat/iterators
ipv6_nc: add iterators
2015-04-30 08:59:44 +02:00
Martine Lenders
bbf57d1691 unittests: add tests for iterators 2015-04-29 21:22:28 +02:00
Martine Lenders
3e9db4371f ipv6_addr: rename ng_ipv6_hdr_is_ipv6_hdr() to something less silly 2015-04-23 02:26:48 +02:00
Martine Lenders
9a842d0526 unittests: move netreg entries out of stack space 2015-04-21 11:35:09 +02:00
Peter Kietzmann
0d45479f02 Merge pull request #2819 from kushalsingh007/hash_string_missing
Tests : Add missing Makefile and Makefile.include for tests-hash_string
2015-04-21 10:25:02 +02:00
kushalsingh007
439b40c0b4 Tests : Add missing Makefile and Makefile.include for tests-hash_string
- Adds the missing files from #2793.
2015-04-20 20:51:21 +05:30
Martine Lenders
8acc8c9ba3 unittests: fix and unify header guards 2015-04-20 14:16:09 +02:00
Martine Lenders
c660fdfdac Merge pull request #2785 from authmillenon/ng_sixlowpan_ctx/feat/initial
ng_sixlowpan: initial import of a context buffer
2015-04-20 10:22:35 +02:00
Martine Lenders
79af989ef6 Merge pull request #2829 from authmillenon/ipv6_addr/fix/init-prefix
ipv6_addr: add missing mask to prefix initialization
2015-04-20 10:05:57 +02:00
kushalsingh007
2f9f67eb38 Tests: Fixing warnings in hash_string_module
- Fixing warnings caused due to directly using the string as argument in
  the assert statement for hash_string function.
- Typecasted strings to solve the issue.
2015-04-19 19:00:58 +05:30
Martine Lenders
3a72e5346b unittests: add tests for ng_sixlowpan_ctx 2015-04-18 15:42:42 +02:00