Hi,
We are trying to generate CMAC authentication code using EVP_aes_128_ccm
mode. The CMAC_Final function returning the single byte hash code which
suppose to return 16-byte hash code.
We tried same algorithm with EVP_aes_128_cbc mode which is returning
16-byte hash code but we have specific requirement for EVP_aes_128_ccm mode.
Here is the sample code snippet for CMAC generation:
{{{
ctx = CMAC_CTX_new();
CMAC_Init(ctx, key, key_len, EVP_aes_128_ccm(), NULL);
CMAC_Update(ctx, d, n);
CMAC_Final(ctx, md, &md_len);
CMAC_CTX_free(ctx);
}}}
Kindly provide us inputs on this issue.
Thanks,
~Prashant.
_______________________________________________
openssl-bugs-mod mailing list
[email protected]
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev