init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System;
using Org.BouncyCastle.Math;
namespace Org.BouncyCastle.Bcpg;
public class DsaSecretBcpgKey : BcpgObject, IBcpgKey
{
internal MPInteger x;
public string Format => "PGP";
public BigInteger X => x.Value;
public DsaSecretBcpgKey(BcpgInputStream bcpgIn)
{
x = new MPInteger(bcpgIn);
}
public DsaSecretBcpgKey(BigInteger x)
{
this.x = new MPInteger(x);
}
public override byte[] GetEncoded()
{
try
{
return base.GetEncoded();
}
catch (Exception)
{
return null;
}
}
public override void Encode(BcpgOutputStream bcpgOut)
{
bcpgOut.WriteObject(x);
}
}