RSA.TryHashData メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したアルゴリズムを使用して、指定されたデータのハッシュを計算し、指定されたバッファーに結果を書き込みます。
protected:
virtual bool TryHashData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TryHashData(ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, out int bytesWritten);
abstract member TryHashData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
override this.TryHashData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * int -> bool
Protected Overridable Function TryHashData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, ByRef bytesWritten As Integer) As Boolean
パラメーター
- data
- ReadOnlySpan<Byte>
ハッシュするデータ。
- hashAlgorithm
- HashAlgorithmName
データのハッシュに使用するアルゴリズム。
- bytesWritten
- Int32
このメソッドから制御が戻るときに、 destinationに書き込まれた合計バイト数が格納されます。 このパラメーターは、初期化されていないものとして扱われます。
返品
注釈
このメソッドの既定の実装では、 HashData(Byte[], Int32, Int32, HashAlgorithmName) が呼び出され、結果が destinationにコピーされます。
派生型は、中間配列の作成を回避するために、このメソッドをオーバーライドする必要があります。