DSA.SignData Yöntem
Tanım
Belirtilen verilerin karma değerini hesaplar ve imzalar.Computes the hash value of the specified data and signs it.
Aşırı Yüklemeler
SignData(Byte[], HashAlgorithmName) |
Belirtilen karma algoritmasını kullanarak belirtilen bayt dizisinin karma değerini hesaplar ve elde edilen karma değeri imzalar.Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value. |
SignData(Stream, HashAlgorithmName) |
Belirtilen karma algoritmasını kullanarak belirtilen akışın karma değerini hesaplar ve elde edilen karma değeri imzalar.Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value. |
SignData(Byte[], HashAlgorithmName, DSASignatureFormat) |
Belirtilen verilerin karma değerini hesaplar ve belirtilen imza biçimini kullanarak imzalar.Computes the hash value of the specified data and signs it using the specified signature format. |
SignData(Stream, HashAlgorithmName, DSASignatureFormat) |
Belirtilen verilerin karma değerini hesaplar ve belirtilen imza biçimini kullanarak imzalar.Computes the hash value of the specified data and signs it using the specified signature format. |
SignData(Byte[], Int32, Int32, HashAlgorithmName) |
Belirtilen karma algoritmasını kullanarak belirtilen bayt dizisinin bir kısmının karma değerini hesaplar ve elde edilen karma değeri imzalar.Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value. |
SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat) |
Belirtilen verilerin karma değerini hesaplar ve belirtilen imza biçimini kullanarak imzalar.Computes the hash value of the specified data and signs it using the specified signature format. |
SignData(Byte[], HashAlgorithmName)
Belirtilen karma algoritmasını kullanarak belirtilen bayt dizisinin karma değerini hesaplar ve elde edilen karma değeri imzalar.Computes the hash value of the specified byte array using the specified hash algorithm and signs the resulting hash value.
public:
cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()
Parametreler
- data
- Byte[]
Karmayı hesaplamak için giriş verileri.The input data for which to compute the hash.
- hashAlgorithm
- HashAlgorithmName
Karma değeri oluşturmak için kullanılacak karma algoritması.The hash algorithm to use to create the hash value.
Döndürülenler
- Byte[]
Belirtilen veriler için DSA imzası.The DSA signature for the specified data.
Özel durumlar
data
, null
değeridir.data
is null
.
Şunlara uygulanır
SignData(Stream, HashAlgorithmName)
Belirtilen karma algoritmasını kullanarak belirtilen akışın karma değerini hesaplar ve elde edilen karma değeri imzalar.Computes the hash value of the specified stream using the specified hash algorithm and signs the resulting hash value.
public:
virtual cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName) As Byte()
Parametreler
- data
- Stream
Karmayı hesaplamak için giriş akışı.The input stream for which to compute the hash.
- hashAlgorithm
- HashAlgorithmName
Karma değeri oluşturmak için kullanılacak karma algoritması.The hash algorithm to use to create the hash value.
Döndürülenler
- Byte[]
Belirtilen veriler için DSA imzası.The DSA signature for the specified data.
Özel durumlar
data
, null
değeridir.data
is null
.
Şunlara uygulanır
SignData(Byte[], HashAlgorithmName, DSASignatureFormat)
Belirtilen verilerin karma değerini hesaplar ve belirtilen imza biçimini kullanarak imzalar.Computes the hash value of the specified data and signs it using the specified signature format.
public:
cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()
Parametreler
- data
- Byte[]
İmzalanacak veriler.The data to sign.
- hashAlgorithm
- HashAlgorithmName
Karma değeri oluşturmak için kullanılacak karma algoritması.The hash algorithm to use to create the hash value.
- signatureFormat
- DSASignatureFormat
İmza için kullanılacak kodlama biçimi.The encoding format to use for the signature.
Döndürülenler
- Byte[]
Belirtilen veriler için DSA imzası.The DSA signature for the specified data.
Özel durumlar
data
, null
değeridir.data
is null
.
signatureFormat
bilinen bir biçim değil.signatureFormat
is not a known format.
Karma veya imzalama işleminde bir hata oluştu.An error occurred in the hashing or signing operation.
Şunlara uygulanır
SignData(Stream, HashAlgorithmName, DSASignatureFormat)
Belirtilen verilerin karma değerini hesaplar ve belirtilen imza biçimini kullanarak imzalar.Computes the hash value of the specified data and signs it using the specified signature format.
public:
cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()
Parametreler
- data
- Stream
İmzalanacak veriler.The data to sign.
- hashAlgorithm
- HashAlgorithmName
Karma değeri oluşturmak için kullanılacak karma algoritması.The hash algorithm to use to create the hash value.
- signatureFormat
- DSASignatureFormat
İmza için kullanılacak kodlama biçimi.The encoding format to use for the signature.
Döndürülenler
- Byte[]
Belirtilen veriler için DSA imzası.The DSA signature for the specified data.
Özel durumlar
data
, null
değeridir.data
is null
.
signatureFormat
bilinen bir biçim değil.signatureFormat
is not a known format.
Karma veya imzalama işleminde bir hata oluştu.An error occurred in the hashing or signing operation.
Şunlara uygulanır
SignData(Byte[], Int32, Int32, HashAlgorithmName)
Belirtilen karma algoritmasını kullanarak belirtilen bayt dizisinin bir kısmının karma değerini hesaplar ve elde edilen karma değeri imzalar.Computes the hash value of a portion of the specified byte array using the specified hash algorithm and signs the resulting hash value.
public:
virtual cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName) As Byte()
Parametreler
- data
- Byte[]
Karmayı hesaplamak için giriş verileri.The input data for which to compute the hash.
- offset
- Int32
Verileri kullanmaya başlamak için kullanılan diziye olan Aralık.The offset into the array at which to begin using data.
- count
- Int32
Dizideki veri olarak kullanılacak bayt sayısı.The number of bytes in the array to use as data.
- hashAlgorithm
- HashAlgorithmName
Karma değeri oluşturmak için kullanılacak karma algoritması.The hash algorithm to use to create the hash value.
Döndürülenler
- Byte[]
Belirtilen veriler için DSA imzası.The DSA signature for the specified data.
Özel durumlar
data
, null
değeridir.data
is null
.
offset
, sıfırdan küçüktür.offset
is less than zero.
-veya--or-
count
, sıfırdan küçüktür.count
is less than zero.
-veya--or-
offset
+ count
-1, üst sınırının ötesinde bir dizin ile sonuçlanır data
.offset
+ count
- 1 results in an index that is beyond the upper bound of data
.
Şunlara uygulanır
SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)
Belirtilen verilerin karma değerini hesaplar ve belirtilen imza biçimini kullanarak imzalar.Computes the hash value of the specified data and signs it using the specified signature format.
public:
cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()
Parametreler
- data
- Byte[]
İmzalanacak veriler.The data to sign.
- offset
- Int32
' data
Nin karma oluşturmaya başlayacağı konum.The offset into data
at which to begin hashing.
- count
- Int32
Okunacak baytların sayısı data
.The number of bytes to read from data
.
- hashAlgorithm
- HashAlgorithmName
Karma değeri oluşturmak için kullanılacak karma algoritması.The hash algorithm to use to create the hash value.
- signatureFormat
- DSASignatureFormat
İmza için kullanılacak kodlama biçimi.The encoding format to use for the signature.
Döndürülenler
- Byte[]
Belirtilen veriler için DSA imzası.The DSA signature for the specified data.
Özel durumlar
data
, null
değeridir.data
is null
.
signatureFormat
bilinen bir biçim değil.signatureFormat
is not a known format.
-veya- offset
sıfırdan küçük.-or- offset
is less than zero.
-veya- count
sıfırdan küçük.-or- count
is less than zero.
-veya- offset
+ count
-1, üst sınırının ötesinde bir dizin ile sonuçlanır data
.-or- offset
+ count
- 1 results in an index that is beyond the upper bound of data
.
Karma veya imzalama işleminde bir hata oluştu.An error occurred in the hashing or signing operation.