COSE: Add verification routine of COSE_Mac0

Add verification routine of COSE_Mac0 message structure in
t_cose.
Move the definitions of structure t_cose_parameters and some flags
from t_cose_sign1_verify.h to t_cose_common.h. Thus COSE_Mac0
verification can share those definitions.

Also add HMAC verification functions to verify the tag in
COSE_Mac0.

Change-Id: Icfb69342f183739852ccff101c6fbf8d00395d85
Signed-off-by: David Hu <david.hu@arm.com>
8 files changed