DSA.CreateSignature Método
Definição
Sobrecargas
| CreateSignature(Byte[]) |
Quando substituído em uma classe derivada, cria a assinatura DSA para o valor de hash especificado.When overridden in a derived class, creates the DSA signature for the specified hash value. |
| CreateSignature(Byte[], DSASignatureFormat) |
Cria a assinatura DSA para o valor de hash especificado no formato indicado.Creates the DSA signature for the specified hash value in the indicated format. |
CreateSignature(Byte[])
public:
abstract cli::array <System::Byte> ^ CreateSignature(cli::array <System::Byte> ^ rgbHash);
public abstract byte[] CreateSignature (byte[] rgbHash);
abstract member CreateSignature : byte[] -> byte[]
Public MustOverride Function CreateSignature (rgbHash As Byte()) As Byte()
Parâmetros
- rgbHash
- Byte[]
O valor de hash a ser assinado.The hash value to be signed.
Retornos
- Byte[]
A assinatura digital para os valores de hash especificados.The digital signature for the specified hash value.
Aplica-se a
CreateSignature(Byte[], DSASignatureFormat)
Cria a assinatura DSA para o valor de hash especificado no formato indicado.Creates the DSA signature for the specified hash value in the indicated format.
public:
cli::array <System::Byte> ^ CreateSignature(cli::array <System::Byte> ^ rgbHash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] CreateSignature (byte[] rgbHash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.CreateSignature : byte[] * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function CreateSignature (rgbHash As Byte(), signatureFormat As DSASignatureFormat) As Byte()
Parâmetros
- rgbHash
- Byte[]
O valor de hash a ser assinado.The hash value to sign.
- signatureFormat
- DSASignatureFormat
O formato de codificação a ser usado na assinatura.The encoding format to use for the signature.
Retornos
- Byte[]
A assinatura DSA para os dados especificados.The DSA signature for the specified data.
Exceções
rgbHash é null.rgbHash is null.
signatureFormat não é um formato conhecido.signatureFormat is not a known format.
Ocorreu um erro na operação de assinatura.An error occurred in the signing operation.