RSA.HashData Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Beräknar hashvärdet för binära data.
Överlagringar
| Name | Description |
|---|---|
| HashData(Stream, HashAlgorithmName) |
När det åsidosätts i en härledd klass beräknar hashvärdet för en angiven binär dataström med hjälp av en angiven hashalgoritm. |
| HashData(Byte[], Int32, Int32, HashAlgorithmName) |
När det åsidosättas i en härledd klass beräknar hash-värdet för en angiven del av en bytematris med hjälp av en angiven hashalgoritm. |
HashData(Stream, HashAlgorithmName)
- Källa:
- RSA.cs
- Källa:
- RSA.cs
- Källa:
- RSA.cs
- Källa:
- RSA.cs
- Källa:
- RSA.cs
När det åsidosätts i en härledd klass beräknar hashvärdet för en angiven binär dataström med hjälp av en angiven hashalgoritm.
protected:
virtual cli::array <System::Byte> ^ HashData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
protected:
abstract cli::array <System::Byte> ^ HashData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
protected virtual byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
protected abstract byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member HashData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.HashData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
abstract member HashData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
Protected Overridable Function HashData (data As Stream, hashAlgorithm As HashAlgorithmName) As Byte()
Protected MustOverride Function HashData (data As Stream, hashAlgorithm As HashAlgorithmName) As Byte()
Parametrar
- data
- Stream
Binärströmmen till hash.
- hashAlgorithm
- HashAlgorithmName
Hash-algoritmen.
Returer
Hashade data.
Undantag
En härledd klass måste åsidosätta den här metoden.
Gäller för
HashData(Byte[], Int32, Int32, HashAlgorithmName)
- Källa:
- RSA.cs
- Källa:
- RSA.cs
- Källa:
- RSA.cs
- Källa:
- RSA.cs
- Källa:
- RSA.cs
När det åsidosättas i en härledd klass beräknar hash-värdet för en angiven del av en bytematris med hjälp av en angiven hashalgoritm.
protected:
virtual cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
protected:
abstract cli::array <System::Byte> ^ HashData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
protected virtual byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
protected abstract byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member HashData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.HashData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
abstract member HashData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
Protected Overridable Function HashData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName) As Byte()
Protected MustOverride Function HashData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName) As Byte()
Parametrar
- data
- Byte[]
De data som ska hashas.
- offset
- Int32
Indexet för den första byte i data som ska hashas.
- count
- Int32
Antalet byte som ska hash.
- hashAlgorithm
- HashAlgorithmName
Algoritmen som ska användas i hash-data.
Returer
Hashade data.
Undantag
En härledd klass måste åsidosätta den här metoden.