[openssl-dev] [openssl.org #4161] Bug : aes-128-ccm cipher mode not working
Prashant Dhange via RT
rt at openssl.org
Mon Nov 30 15:25:01 UTC 2015
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.
-------------- next part --------------
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
More information about the openssl-dev
mailing list