다음을 통해 공유


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[])

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
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>)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
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)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
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 서명입니다.

예외

hash이(가) null인 경우

signatureFormat은 알려진 형식이 아닙니다.

서명 작업에서 오류가 발생했습니다.

적용 대상

SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
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>)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
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)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
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 버퍼가 너무 작아서 서명을 보유할 수 없습니다.

적용 대상