Hi Brian, Denis,
On 05/29, Gix, Brian wrote:
> Is this about mesh_crypto_aes_ccm_encrypt and
> mesh_crypto_aes_ccm_decrypt functions in mesh/crypto.c?
The code you copy pasted below *is* the usage of AES_CCM that we use in mesh,
Um, it's not - mesh_crypto_aes_ccm_* functions seem to implement AES_CCM
on top of ECB, in user space. As Denis mentioned, this is somewhat
inefficient, but at least it works on older kernels.
I was thinking about submitting a patch to change that, but then I'd be
shooting myself in the foot, because my target platform runs kernel 4.4
if I recall correctly ;)
but it is *not* the topic of the patch I posted here to ELL
AES-CMAC is the algorithm we use in Mesh to generate all of the
various Keys and IDs from master Net and App keys....
Ah, right, it's the K* family of functions. Sorry, I confused CCM and
Michał Lowas-Rzechonek <michal.lowas-rzechonek(a)silvair.com>
Jasnogórska 44, 31-358 Krakow, POLAND