SignatureAlgorithm
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class
public abstract class SignatureAlgorithm
Hierarquia: object → SignatureAlgorithm
Construtores
SignatureAlgorithm()
protected SignatureAlgorithm()
Campos
MD5WithRSA
public static readonly SignatureAlgorithm MD5WithRSA
Retorno
SHA1WithDSA
public static readonly SignatureAlgorithm SHA1WithDSA
Retorno
SHA1WithRSA
public static readonly SignatureAlgorithm SHA1WithRSA
Retorno
SHA256WithDSA
public static readonly SignatureAlgorithm SHA256WithDSA
Retorno
SHA256WithECDsa
public static readonly SignatureAlgorithm SHA256WithECDsa
Retorno
SHA256WithRSA
public static readonly SignatureAlgorithm SHA256WithRSA
Retorno
SHA384WithECDsa
public static readonly SignatureAlgorithm SHA384WithECDsa
Retorno
SHA384WithRSA
public static readonly SignatureAlgorithm SHA384WithRSA
Retorno
SHA512WithECDsa
public static readonly SignatureAlgorithm SHA512WithECDsa
Retorno
SHA512WithRSA
public static readonly SignatureAlgorithm SHA512WithRSA
Retorno
Propriedades
DigestAlgorithm
public abstract DigestAlgorithm DigestAlgorithm { get; }
Retorno
Name
public abstract string Name { get; }
Retorno
Oid
public abstract string Oid { get; }
Retorno
PKAlgorithm
public abstract PKAlgorithm PKAlgorithm { get; }
Retorno
XmlUri
public abstract string XmlUri { get; }
Retorno
Métodos
Equals(object)
public override bool Equals(object obj)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
obj | object |
Retorno
Equals(SignatureAlgorithm)
public bool Equals(SignatureAlgorithm other)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
other | SignatureAlgorithm |
Retorno
GetCsp(PublicKey)
public abstract ISignatureCsp GetCsp(PublicKey publicKey)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
publicKey | PublicKey |
Retorno
GetHashCode()
public override int GetHashCode()
Retorno
GetInstanceByName(string)
public static SignatureAlgorithm GetInstanceByName(string name)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
name | string |
Retorno
GetInstanceByOid(string)
public static SignatureAlgorithm GetInstanceByOid(string oid)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
oid | string |
Retorno
GetInstanceByXmlUri(string)
public static SignatureAlgorithm GetInstanceByXmlUri(string xmlUri)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
xmlUri | string |
Retorno
VerifyData(PublicKey, byte[], byte[])
public bool VerifyData(PublicKey publicKey, byte[] dataSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
publicKey | PublicKey | |
dataSigned | byte[] | |
signature | byte[] |
Retorno
VerifyHash(PublicKey, byte[], byte[])
public bool VerifyHash(PublicKey publicKey, byte[] hashSigned, byte[] signature)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
publicKey | PublicKey | |
hashSigned | byte[] | |
signature | byte[] |
Retorno
Operadores
operator !=(SignatureAlgorithm, SignatureAlgorithm)
public static bool operator !=(SignatureAlgorithm a, SignatureAlgorithm b)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
a | SignatureAlgorithm | |
b | SignatureAlgorithm |
Retorno
operator ==(SignatureAlgorithm, SignatureAlgorithm)
public static bool operator ==(SignatureAlgorithm a, SignatureAlgorithm b)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
a | SignatureAlgorithm | |
b | SignatureAlgorithm |
Retorno
Membros herdados
ToString(), Equals(object, object), ReferenceEquals(object, object), GetType(), MemberwiseClone()