When calculating just the size of the attestation token then it is unnecessary to call signing algorithm.
Related change: https://review.trustedfirmware.org/#/c/trusted-firmware-m/+/1238/