sc_asn1_put_tag: tags must be unsigned and at most 4 bytes