Skip to content

Added AES-CMAC with IV support#127

Open
NinjaRat84 wants to merge 2 commits intowhyoleg:mainfrom
NinjaRat84:feature/aes_cmac_iv_power
Open

Added AES-CMAC with IV support#127
NinjaRat84 wants to merge 2 commits intowhyoleg:mainfrom
NinjaRat84:feature/aes_cmac_iv_power

Conversation

@NinjaRat84
Copy link
Contributor

@NinjaRat84 NinjaRat84 commented Sep 25, 2025

Extension the AES-CMAC provider to support AES block cipher operations with IV, in addition to the existing CMAC signature functionality.

It introduces a new AesCmacWithIvCipher implementation, enabling encryption and decryption with an IV, while maintaining the original CMAC-based signing and verification.

This enhances the provider to support both message authentication and block cipher use cases.

@NinjaRat84 NinjaRat84 changed the title Added AES-CMAC with IV (CBC) support Added AES-CMAC with IV support Oct 16, 2025
@naquden
Copy link

naquden commented Dec 18, 2025

I really want this change as well, in our project we're handing hardware that can't be changed, and those hardware expects this type of IV rotation.

@whyoleg
Copy link
Owner

whyoleg commented Dec 22, 2025

@NinjaRat84, first of all, thank you, and I'm very sorry for the delay... The end of the year appeared to be very busy on my side.

Second, do you mind sharing the RFC or another document related to what you want to support here? :)
I mean, it looks like AES CCM, but I'm not sure.

Third, in its current form, where the algorithm's implementation is written from scratch and is quite large, I will not be able to accept the PR. Do you mind checking if BouncyCastle or OpenSSL supports the algorithm out of the box? They most likely support it.

I will go on vacation in comming days, and will be able to check the PR/code changes only in January, sorry for that :(

@NinjaRat84 NinjaRat84 force-pushed the feature/aes_cmac_iv_power branch from 7151e4b to bc61fb9 Compare January 19, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants