123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293module juptune.data.x509.asn1convert;
abstract abstract class X509SignatureAlgorithm
{
/++ STRUCTS ++/
/// DSA + SHA1 (RFC 3279)
static struct DsaWithSha1
{
/++ VARIABLES ++/
///
ulong r;
///
ulong s;
}
/// DSA + SHA224 (RFC 5754)
static struct DsaWithSha244
{
}
/// DSA + SHA256 (RFC 5754)
static struct DsaWithSha256
{
}
/// ECDSA + SHA244 (RFC 5754)
static struct EcdsaWith244
{
}
/// ECDSA + SHA256 (RFC 5754)
static struct EcdsaWith256
{
}
/// ECDSA + SHA384 (RFC 5754)
static struct EcdsaWith384
{
}
/// ECDSA + SHA512 (RFC 5754)
static struct EcdsaWith512
{
}
/// ECDSA + SHA1 (RFC 3279)
static struct EcdsaWithSha1
{
/++ VARIABLES ++/
///
ulong r;
///
ulong s;
}
/// RSA + MD2 (RFC 3279)
static struct Md2WithRsaEncryption
{
}
/// RSA + MD5 (RFC 3279)
static struct Md5WithRsaEncryption
{
}
/// RSA + SHA1 (RFC 3279)
static struct Sha1WithRsaEncryption
{
}
/// RSA + SHA244 (RFC 5754)
static struct Sha244WithRsaEncryption
{
}
/// RSA + SHA256 (RFC 5754)
static struct Sha256WithRsaEncryption
{
}
/// RSA + SHA384 (RFC 5754)
static struct Sha384WithRsaEncryption
{
}
/// RSA + SHA512 (RFC 5754)
static struct Sha512WithRsaEncryption
{
}
/// An unknown signature was encountered - user code may be able to recognise it though.
static struct Unknown
{
/++ VARIABLES ++/
///
AlgorithmIdentifier identifier;
}
/++ ALIASES ++/
/// A SumType of all possible signature algorithms.
alias SumT = SumType!(X509SignatureAlgorithm.Unknown, X509SignatureAlgorithm.Md2WithRsaEncryption, X509SignatureAlgorithm.Md5WithRsaEncryption, X509SignatureAlgorithm.Sha1WithRsaEncryption, X509SignatureAlgorithm.DsaWithSha1, X509SignatureAlgorithm.EcdsaWithSha1, X509SignatureAlgorithm.DsaWithSha244, X509SignatureAlgorithm.DsaWithSha256, X509SignatureAlgorithm.Sha244WithRsaEncryption, X509SignatureAlgorithm.Sha256WithRsaEncryption, X509SignatureAlgorithm.Sha384WithRsaEncryption, X509SignatureAlgorithm.Sha512WithRsaEncryption, X509SignatureAlgorithm.EcdsaWith244, X509SignatureAlgorithm.EcdsaWith256, X509SignatureAlgorithm.EcdsaWith384, X509SignatureAlgorithm.EcdsaWith512);
}
Namespace class used to store all supported signature algorithms.
| Name | Description |
|---|---|
| SumT |
A SumType of all possible signature algorithms. |
| Name | Description |
|---|---|
| DsaWithSha1 |
DSA + SHA1 (RFC 3279) |
| DsaWithSha244 |
DSA + SHA224 (RFC 5754) |
| DsaWithSha256 |
DSA + SHA256 (RFC 5754) |
| EcdsaWith244 |
ECDSA + SHA244 (RFC 5754) |
| EcdsaWith256 |
ECDSA + SHA256 (RFC 5754) |
| EcdsaWith384 |
ECDSA + SHA384 (RFC 5754) |
| EcdsaWith512 |
ECDSA + SHA512 (RFC 5754) |
| EcdsaWithSha1 |
ECDSA + SHA1 (RFC 3279) |
| Md2WithRsaEncryption |
RSA + MD2 (RFC 3279) |
| Md5WithRsaEncryption |
RSA + MD5 (RFC 3279) |
| Sha1WithRsaEncryption |
RSA + SHA1 (RFC 3279) |
| Sha244WithRsaEncryption |
RSA + SHA244 (RFC 5754) |
| Sha256WithRsaEncryption |
RSA + SHA256 (RFC 5754) |
| Sha384WithRsaEncryption |
RSA + SHA384 (RFC 5754) |
| Sha512WithRsaEncryption |
RSA + SHA512 (RFC 5754) |
| Unknown |
An unknown signature was encountered - user code may be able to recognise it though. |