I am developping an AES library which supports Counter with CBC-MAC mode and I have a question about the TAG (MAC) size.
Is the TAG size an input that must be provided by user or it can be computed from other parameters like header size, IV (counter or nonce) size and returned to user?
In my library I declare a function as following:
AES-CCM(Encrypt, header, header size, Nounce, NonceSize, PlainText,
PlainTextSize, &TAGSize, &CipherText);