Signs a COSE_Sign1's Sig_structure.
the COSE algorithm identifier
the private key: a KeyObject, PEM or JWK, or for a post-quantum algorithm its bytes or { priv }
{ priv }
the encoded protected header
the payload
external, the external additional authenticated data
external
the signature
Signs a COSE_Sign1's Sig_structure.