Share via


ECDsa.SignHash メソッド

定義

オーバーロード

SignHash(Byte[])

指定したハッシュ値のデジタル署名を生成します。

SignHash(ReadOnlySpan<Byte>)

指定したハッシュ値の ECDSA 署名を計算します。

SignHash(Byte[], DSASignatureFormat)

指定した形式で、指定したハッシュ値の ECDSA 署名を計算します。

SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

指定した形式で、指定したハッシュ値の ECDSA 署名を計算します。

SignHash(ReadOnlySpan<Byte>, Span<Byte>)

指定したハッシュ値の ECDSA 署名を指定されたバッファーに計算します。

SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat)

指定されたハッシュ値の ECDSA 署名を指定されたバッファーに指定された形式で計算します。

SignHash(Byte[])

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ値のデジタル署名を生成します。

public:
 abstract cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public abstract byte[] SignHash (byte[] hash);
abstract member SignHash : byte[] -> byte[]
Public MustOverride Function SignHash (hash As Byte()) As Byte()

パラメーター

hash
Byte[]

署名されたデータのハッシュ値。

戻り値

Byte[]

指定したハッシュ値のデジタル署名。

例外

hash パラメーターが null です。

適用対象

SignHash(ReadOnlySpan<Byte>)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ値の ECDSA 署名を計算します。

public:
 cli::array <System::Byte> ^ SignHash(ReadOnlySpan<System::Byte> hash);
public byte[] SignHash (ReadOnlySpan<byte> hash);
member this.SignHash : ReadOnlySpan<byte> -> byte[]
Public Function SignHash (hash As ReadOnlySpan(Of Byte)) As Byte()

パラメーター

hash
ReadOnlySpan<Byte>

署名されたデータのハッシュ値。

戻り値

Byte[]

指定したハッシュ値のデジタル署名。

例外

署名操作で発生したエラー。

注釈

このメソッドは、 を使用 IeeeP1363FixedFieldConcatenation してシグネチャをエンコードします。 別の署名形式を使用するには、 を使用します SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

適用対象

SignHash(Byte[], DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定した形式で、指定したハッシュ値の ECDSA 署名を計算します。

public:
 cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignHash (byte[] hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignHash : byte[] * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignHash (hash As Byte(), signatureFormat As DSASignatureFormat) As Byte()

パラメーター

hash
Byte[]

署名するハッシュ値。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

Byte[]

指定されたデータの ECDSA 署名。

例外

hashnullです。

signatureFormat は既知の形式ではありません。

署名操作で発生したエラー。

適用対象

SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定した形式で、指定したハッシュ値の ECDSA 署名を計算します。

public:
 cli::array <System::Byte> ^ SignHash(ReadOnlySpan<System::Byte> hash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignHash (ReadOnlySpan<byte> hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignHash : ReadOnlySpan<byte> * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignHash (hash As ReadOnlySpan(Of Byte), signatureFormat As DSASignatureFormat) As Byte()

パラメーター

hash
ReadOnlySpan<Byte>

署名されたデータのハッシュ値。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

Byte[]

指定したハッシュ値のデジタル署名。

例外

signatureFormat は既知の形式ではありません。

署名操作で発生したエラー。

適用対象

SignHash(ReadOnlySpan<Byte>, Span<Byte>)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定したハッシュ値の ECDSA 署名を指定されたバッファーに計算します。

public:
 int SignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination);
public int SignHash (ReadOnlySpan<byte> hash, Span<byte> destination);
member this.SignHash : ReadOnlySpan<byte> * Span<byte> -> int
Public Function SignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer

パラメーター

hash
ReadOnlySpan<Byte>

署名されたデータのハッシュ値。

destination
Span<Byte>

署名を受け取るバッファー。

戻り値

destination に書き込まれた合計バイト数。

例外

署名操作で発生したエラー。

destination バッファーが小さすぎて署名を保持できません。

注釈

このメソッドは、 を使用 IeeeP1363FixedFieldConcatenation してシグネチャをエンコードします。 別の署名形式を使用するには、 を使用します SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat)

適用対象

SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat)

ソース:
ECDsa.cs
ソース:
ECDsa.cs
ソース:
ECDsa.cs

指定されたハッシュ値の ECDSA 署名を指定されたバッファーに指定された形式で計算します。

public:
 int SignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public int SignHash (ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignHash : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.DSASignatureFormat -> int
Public Function SignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), signatureFormat As DSASignatureFormat) As Integer

パラメーター

hash
ReadOnlySpan<Byte>

署名されたデータのハッシュ値。

destination
Span<Byte>

署名を受け取るバッファー。

signatureFormat
DSASignatureFormat

署名に使用するエンコード形式。

戻り値

destination に書き込まれた合計バイト数。

例外

signatureFormat は既知の形式ではありません。

署名操作で発生したエラー。

destination バッファーが小さすぎて署名を保持できません。

適用対象