[riot-notifications] [RIOT-OS/RIOT] Initial implementation of IEEE 802.15.4 security (#15150)

benpicco notifications at github.com
Sun Nov 15 17:08:43 CET 2020


@benpicco commented on this pull request.



> +
+#include <stdbool.h>
+#include <string.h>
+
+#include "crypto/ciphers.h"
+#include "crypto/modes/ecb.h"
+#include "crypto/modes/cbc.h"
+#include "net/ieee802154_security.h"
+
+const ieee802154_radio_cipher_ops_t ieee802154_radio_cipher_ops = {
+    .set_key = ieee802154_sec_set_key,
+    .ecb = ieee802154_sec_ecb,
+    .cbc = ieee802154_sec_cbc
+};
+
+static inline uint8_t _min(uint8_t a, uint8_t b)

```suggestion
static inline uint16_t _min(uint16_t a, uint16_t b)
```

quick remedy for encryption with 802.15.4g frames getting stuck.
With this, sending and receiving of large (>255 byte) frames works fine.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15150#pullrequestreview-530812013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201115/d15de061/attachment.htm>


More information about the notifications mailing list