1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/crypto
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
..
modes crypto/ccm: fix input_len check 2018-05-07 15:08:00 +02:00
aes.c sys: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
chacha_prng.c sys: add ChaCha stream cipher and PRNG 2015-06-28 18:32:04 +02:00
chacha.c crypto: fix cppcheck warnings 2017-04-14 14:36:14 +02:00
ciphers.c Unified Cipher API and Block cipher operation modes 2015-07-22 19:18:34 +02:00
doc.txt sys/crypto: remove 3DES 2017-04-25 18:34:18 +02:00
helper.c Unified Cipher API and Block cipher operation modes 2015-07-22 19:18:34 +02:00
Makefile make: replace curly braces with parenthesis 2018-03-22 20:43:15 +01:00