Skip to content

Can AES-CMAC key come from session context or anything other than the symmetric secret OID, and size limits? #38

Answered by ayushev
antfarmer asked this question in Q&A
Discussion options

You must be logged in to vote

I am able to get the CMAC function to work on my PIC24 environment, but I'd like to be able to use ECDH and a KDF to generate the key in OPTIGA_KEY_ID_SESSION_BASED to avoid having to transfer the key in and out of the chip. Right now, I can only get it to work with OPTIGA_KEY_ID_SECRET_BASED.

can you please help me understand where exactly do you struggle? Ideally with some code snippet.

Similar to my HMAC question, what are the size limits for CMAC when calling optiga_crypt_symmetric_encrypt vs optiga_crypt_symmetric_encrypt_start/continue/final? Is there a table of size limitations for API functions any where in the documentation? Thanks.

It is limited by the communication buffer (…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@antfarmer
Comment options

@ayushev
Comment options

@antfarmer
Comment options

Answer selected by ayushev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants