[riot-notifications] [RIOT-OS/RIOT] pkg/openwsn: re-integrate the network stack as a package (#13824)

Francisco notifications at github.com
Tue May 19 10:31:52 CEST 2020

@fjmolinas commented on this pull request.

> +
+#include <stdio.h>
+#include "opendefs.h"
+#include "crypto/ciphers.h"
+#include "crypto/modes/ecb.h"
+#include "crypto/modes/ccm.h"
+owerror_t cryptoengine_aes_ccms_enc(uint8_t *a, uint8_t len_a, uint8_t *m,
+                                    uint8_t *len_m, uint8_t *nonce, uint8_t l,
+                                    uint8_t *key, uint8_t len_mac)
+    cipher_t cipher;
+    int ret, len;
+    uint8_t tmp_buff[*len_m + len_mac];

I added a define where `*len_m` is capped at 125 and `len_mac` is at most 16 octets. There is an assert OpenWSN code that enforces this length:


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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200519/a6dac963/attachment-0001.htm>

More information about the notifications mailing list