[riot-notifications] [RIOT-OS/RIOT] tests-crypto-modes-ccm: Refactoring to support more evolved tests (#8109)
notifications at github.com
Tue Dec 19 17:54:57 CET 2017
cladmi commented on this pull request.
> @@ -17,6 +17,8 @@
+static const uint8_t nonce_and_len_encoding_size = 15;
I based myself of the ccm_encrypt and decrypt api:
* `mac_length` and `length_encoding` are both `uint8_t`.
* `nonce_len` which is a `size_t` has a maximum length of `15 - length_encoding` (the api documentation is wrong and saying 16 - L, I will do a PR).
Whereas the other ones `input_len`, `output_len` and `auth_data_len` can be bigger than 255 and its required to provide big data to trigger some of the bugs.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications