DSA is used for signatures, an algorithm that current standards no longer approve
What it finds
FIPS 186-5 no longer approves DSA for new signatures, and the .NET implementations limit its key size. ECDSA or RSA with PSS padding are the usual replacements.
From the rule's source, dsa_signature.rs.
using System.Security.Cryptography; class Signatures{ void Make() { using var dsa = DSA.Create();tx0 reports: DSA is no longer approved for signatures using var ecdsa = ECDsa.Create(); }} Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/csharp:dsa-signature" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/csharp:dsa-signature] reason="..."tx0 explain tx0/csharp:dsa-signature shows the same in the terminal. Found a false positive? Report it.