Truncate-able tags gave a way to truncated hmac extension. Haven't gone through CCM RFC 3610 completely.
I can see the restriction of possible M values(Tag lengths) to 2, 4, 6, 8, 10, 12, 14, 16. Can you try reducing the tag size accordingly and see if it succeeds. On Wed, Jun 18, 2014 at 6:52 PM, Michel <msa...@paybox.com> wrote: > Thank for your answer. > > But isn't this strategy very hazardous ? > And why just for GCM and not CCM ? > > Le 18/06/2014 14:37, Thulasi Goriparthi a écrit : > > EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, sizeof(gcm_tag), gcm_tag); > > When you change tag length with the above statement, you are telling > the decrypt context to consider only those many number of bytes > for tag comparision. > > >