Files
SuperVPN/output/Libraries/BouncyCastle.Crypto/Org/BouncyCastle/Crypto/Tls/TlsDssSigner.cs
2025-10-09 09:57:24 +09:00

20 lines
497 B
C#

using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Crypto.Signers;
namespace Org.BouncyCastle.Crypto.Tls;
public class TlsDssSigner : TlsDsaSigner
{
protected override byte SignatureAlgorithm => 2;
public override bool IsValidPublicKey(AsymmetricKeyParameter publicKey)
{
return publicKey is DsaPublicKeyParameters;
}
protected override IDsa CreateDsaImpl(byte hashAlgorithm)
{
return new DsaSigner(new HMacDsaKCalculator(TlsUtilities.CreateHash(hashAlgorithm)));
}
}