ECDsa.SignData 메서드

정의

지정된 데이터의 해시 값을 계산하고 서명합니다.

오버로드

SignData(Byte[], HashAlgorithmName)

지정된 해시 알고리즘을 사용하여 지정된 바이트 배열의 해시 값을 계산하고 결과 해시 값을 서명합니다.

SignData(Stream, HashAlgorithmName)

지정된 해시 알고리즘을 사용하여 지정된 스트림의 해시 값을 계산하고 결과 해시 값을 서명합니다.

SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

지정된 데이터의 해시 값을 계산하고 서명합니다.

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName)

지정된 데이터의 해시 값을 계산하고 표시된 형식으로 제공된 버퍼에 서명합니다.

SignData(Byte[], Int32, Int32, HashAlgorithmName)

지정된 해시 알고리즘을 사용하여 지정된 바이트 배열 일부의 해시 값을 계산하고 결과 해시 값을 서명합니다.

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat)

지정된 데이터의 해시 값을 계산하고 표시된 형식으로 제공된 버퍼에 서명합니다.

SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

SignData(Byte[], HashAlgorithmName)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 해시 알고리즘을 사용하여 지정된 바이트 배열의 해시 값을 계산하고 결과 해시 값을 서명합니다.

public:
 virtual cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()

매개 변수

data
Byte[]

해시를 컴퓨팅할 입력 데이터입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

datanull입니다.

hashAlgorithm.Namenull 또는 Empty입니다.

적용 대상

SignData(Stream, HashAlgorithmName)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 해시 알고리즘을 사용하여 지정된 스트림의 해시 값을 계산하고 결과 해시 값을 서명합니다.

public:
 virtual cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName) As Byte()

매개 변수

data
Stream

해시를 컴퓨팅할 입력 스트림입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

datanull입니다.

hashAlgorithm.Namenull 또는 Empty입니다.

적용 대상

SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 서명합니다.

public:
 cli::array <System::Byte> ^ SignData(ReadOnlySpan<System::Byte> data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public byte[] SignData (ReadOnlySpan<byte> data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.SignData : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Function SignData (data As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName) As Byte()

매개 변수

data
ReadOnlySpan<Byte>

해시하고 서명할 데이터입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

hashAlgorithm's Name 는 빈 문자열입니다.

hashAlgorithm's Name 는 입니다 null.

설명

이 메서드는 를 사용하여 IeeeP1363FixedFieldConcatenation 서명을 인코딩합니다. 다른 서명 형식을 사용하려면 를 사용합니다 SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat).

적용 대상

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

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

매개 변수

data
Byte[]

서명할 데이터입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

signatureFormat
DSASignatureFormat

시그니처에 사용할 인코딩 형식입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

data이(가) null인 경우

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

hashAlgorithmnull 또는 빈 Name입니다.

해시 또는 서명 작업에서 오류가 발생했습니다.

적용 대상

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

public:
 cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()

매개 변수

data
Stream

서명할 데이터입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

signatureFormat
DSASignatureFormat

시그니처에 사용할 인코딩 형식입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

data이(가) null인 경우

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

hashAlgorithmnull 또는 빈 Name입니다.

해시 또는 서명 작업에서 오류가 발생했습니다.

적용 대상

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

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

매개 변수

data
ReadOnlySpan<Byte>

해시하고 서명할 데이터입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

signatureFormat
DSASignatureFormat

시그니처에 사용할 인코딩 형식입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

hashAlgorithm's Name 는 빈 문자열입니다.

hashAlgorithm's Name 는 입니다 null.

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

적용 대상

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 표시된 형식으로 제공된 버퍼에 서명합니다.

public:
 int SignData(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public int SignData (ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.SignData : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName -> int
Public Function SignData (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName) As Integer

매개 변수

data
ReadOnlySpan<Byte>

해시하고 서명할 데이터입니다.

destination
Span<Byte>

서명을 받을 버퍼입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

반환

destination에 실행된 쓰기의 총 바이트 수입니다.

예외

hashAlgorithm's Name 는 빈 문자열입니다.

또는

destination 버퍼가 너무 작아서 서명을 보관할 수 없습니다.

hashAlgorithm's Name 는 입니다 null.

설명

이 메서드는 를 사용하여 IeeeP1363FixedFieldConcatenation 서명을 인코딩합니다. 다른 서명 형식을 사용하려면 를 사용합니다 SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat).

적용 대상

SignData(Byte[], Int32, Int32, HashAlgorithmName)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 해시 알고리즘을 사용하여 지정된 바이트 배열 일부의 해시 값을 계산하고 결과 해시 값을 서명합니다.

public:
 virtual cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual byte[] SignData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
override this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Overridable Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName) As Byte()

매개 변수

data
Byte[]

해시를 컴퓨팅할 입력 데이터입니다.

offset
Int32

데이터 사용을 시작할 배열의 오프셋입니다.

count
Int32

데이터로 사용할 배열의 바이트 수입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

datanull입니다.

hashAlgorithm.Namenull 또는 Empty입니다.

offset가 0보다 작은 경우

또는

count가 0보다 작은 경우

또는

offset + count – 1의 결과는 data의 상한을 초과하는 인덱스입니다.

적용 대상

SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 표시된 형식으로 제공된 버퍼에 서명합니다.

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

매개 변수

data
ReadOnlySpan<Byte>

해시하고 서명할 데이터입니다.

destination
Span<Byte>

서명을 받을 버퍼입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

signatureFormat
DSASignatureFormat

시그니처에 사용할 인코딩 형식입니다.

반환

destination에 실행된 쓰기의 총 바이트 수입니다.

예외

hashAlgorithm's Name 는 빈 문자열입니다.

또는

destination 버퍼가 너무 작아서 서명을 보관할 수 없습니다.

hashAlgorithm's Name 는 입니다 null.

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

적용 대상

SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

지정된 데이터의 해시 값을 계산하고 지정된 시그니처 형식을 사용하여 해당 값에 서명합니다.

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignData (byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Byte()

매개 변수

data
Byte[]

서명할 데이터입니다.

offset
Int32

해시를 시작할 data의 오프셋입니다.

count
Int32

data에서 읽을 바이트 수입니다.

hashAlgorithm
HashAlgorithmName

해시 값을 만드는 데 사용할 해시 알고리즘입니다.

signatureFormat
DSASignatureFormat

시그니처에 사용할 인코딩 형식입니다.

반환

Byte[]

지정된 데이터의 ECDSA 서명입니다.

예외

data이(가) null인 경우

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

또는

offset가 0보다 작은 경우

또는

count가 0보다 작은 경우

또는

offset + count – 1의 결과는 data의 상한을 초과하는 인덱스입니다.

hashAlgorithmnull 또는 빈 Name입니다.

해시 또는 서명 작업에서 오류가 발생했습니다.

적용 대상