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,30 @@
namespace Org.BouncyCastle.Bcpg.Sig;
public class Revocable : SignatureSubpacket
{
private static byte[] BooleanToByteArray(bool value)
{
byte[] array = new byte[1];
if (value)
{
array[0] = 1;
return array;
}
return array;
}
public Revocable(bool critical, bool isLongLength, byte[] data)
: base(SignatureSubpacketTag.Revocable, critical, isLongLength, data)
{
}
public Revocable(bool critical, bool isRevocable)
: base(SignatureSubpacketTag.Revocable, critical, isLongLength: false, BooleanToByteArray(isRevocable))
{
}
public bool IsRevocable()
{
return data[0] != 0;
}
}