Hi Lukasz, >>> This patch adds handling AES-CMAC-128 signing as specified in the NIST >>> Special Publication 800-38B >>> --- >>> src/shared/aes-cmac.c | 346 ++++++++++++++++++++++++++++++++++++++++++++++++++ >>> src/shared/aes-cmac.h | 38 ++++++ >>> 2 files changed, 384 insertions(+) >>> create mode 100644 src/shared/aes-cmac.c >>> create mode 100644 src/shared/aes-cmac.h >> >> I really like to see it included in src/shared/crypto.c. Lets try that one first. It is meant to provide the whole crypto toolbox for us. > > I tried but it did not look good to me then. > > Anyway, what I need to do is to add to struct bt_crypro a member which > will contain aes-cmac session data (key, sub keys, sign_counter) > I need to also mess a bit with bt_crypto_new and add there parameters > needed to initialize AES-CMAC ? > Is that a good way? just initialize AES-CMAC unconditionally in bt_crypto_new. We do that for the random number generator as well. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html