COSE: skip sig alg call when computing token size

The pub key signing algorithm (e.g. ECDSA) is not called
when calculating the size of a signed COSE message
(e.g. the size of an attestation token). This optimization
avoid to call the unnecessary but CPU cycle intenziv
signing operation.

Change-Id: Ie474c97b82ee1ad0843fead319f95017918f8af2
Signed-off-by: Laurence Lundblade <lgl@securitytheory.com>
1 file changed