The nonce is too long in the CCM encryption functions. This can be seen from the memcpy functions and the local buffer sizes.
memcpy
Patch attached.
Thanks!
Applied in commit 4eb5a0d.
Thanks!
Applied in commit 4eb5a0d.