Bewerken

Delen via


DSACryptoServiceProvider.SignData Method

Definition

Computes the hash value of the specified data and signs it.

Overloads

SignData(Byte[])

Computes the hash value of the specified byte array and signs the resulting hash value.

SignData(Stream)

Computes the hash value of the specified input stream and signs the resulting hash value.

SignData(Byte[], Int32, Int32)

Signs a byte array from the specified start point to the specified end point.

SignData(Byte[])

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Computes the hash value of the specified byte array and signs the resulting hash value.

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ buffer);
public byte[] SignData (byte[] buffer);
override this.SignData : byte[] -> byte[]
member this.SignData : byte[] -> byte[]
Public Function SignData (buffer As Byte()) As Byte()

Parameters

buffer
Byte[]

The input data for which to compute the hash.

Returns

Byte[]

The DSA signature for the specified data.

Remarks

This method creates a digital signature that is verified using the VerifyData method.

DSA uses the SHA1 hash algorithm.

See also

Applies to

SignData(Stream)

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Computes the hash value of the specified input stream and signs the resulting hash value.

public:
 cli::array <System::Byte> ^ SignData(System::IO::Stream ^ inputStream);
public byte[] SignData (System.IO.Stream inputStream);
override this.SignData : System.IO.Stream -> byte[]
member this.SignData : System.IO.Stream -> byte[]
Public Function SignData (inputStream As Stream) As Byte()

Parameters

inputStream
Stream

The input data for which to compute the hash.

Returns

Byte[]

The DSA signature for the specified data.

Remarks

DSA uses the SHA1 hash algorithm.

See also

Applies to

SignData(Byte[], Int32, Int32)

Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs
Source:
DSACryptoServiceProvider.Unix.cs

Signs a byte array from the specified start point to the specified end point.

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ buffer, int offset, int count);
public byte[] SignData (byte[] buffer, int offset, int count);
override this.SignData : byte[] * int * int -> byte[]
member this.SignData : byte[] * int * int -> byte[]
Public Function SignData (buffer As Byte(), offset As Integer, count As Integer) As Byte()

Parameters

buffer
Byte[]

The input data to sign.

offset
Int32

The offset into the array from which to begin using data.

count
Int32

The number of bytes in the array to use as data.

Returns

Byte[]

The DSA signature for the specified data.

Remarks

This method creates a digital signature that is verified using the VerifyData method.

DSA uses the SHA1 hash algorithm.

See also

Applies to