ECDsa.SignHash 메서드

정의

오버로드

Name Description
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
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
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
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 서명입니다.

예외

hashnull입니다.

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

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

적용 대상

SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

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

추가 정보

적용 대상