Just want to add that I do set the data sizes before EncryptUpdate and DecryptUpdate and mentioned in the CCM section of the OpenSSL support page. This page does answer both my questions (appologies), but I still fail to decrypt.
Regards, Leon Brits Senior Design Engineer Parsec Work +27 12 678 9740 Cell +27 (84) 250 2855 Email le...@parsec.co.za www.parsec.co.za/disclaimer -----Original Message----- From: owner-openssl-...@openssl.org [mailto:owner-openssl-...@openssl.org] On Behalf Of Leon Brits Sent: 05 March 2013 11:40 AM To: openssl-dev@openssl.org Subject: RE: AES modes in FIPS and non-FIPS modes Thanks for clarifying that for my. Using the example code at http://www.fredriks.se/?p=23, I've duplicated everything of the GCM mode for the CCM mode with the addition of setting the tag length in the beginning of the encryption function. The encryption succeed BUT the decryption fails. Again, just like with GCM, I did not set the IV length or the AAD, so ... 1. Should I set them for CCM to work? 2. What should the tag length be? Regards Leon Brits ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org