DSA.SignData 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 데이터의 해시 값을 계산하고 서명합니다.
오버로드
| Name | Description |
|---|---|
| SignData(Byte[], HashAlgorithmName) |
지정된 해시 알고리즘을 사용하여 지정된 바이트 배열의 해시 값을 계산하고 결과 해시 값에 서명합니다. |
| SignData(Stream, HashAlgorithmName) |
지정된 해시 알고리즘을 사용하여 지정된 스트림의 해시 값을 계산하고 결과 해시 값에 서명합니다. |
| SignData(Byte[], HashAlgorithmName, DSASignatureFormat) |
지정된 데이터의 해시 값을 계산하고 지정된 서명 형식을 사용하여 서명합니다. |
| SignData(Stream, HashAlgorithmName, DSASignatureFormat) |
지정된 데이터의 해시 값을 계산하고 지정된 서명 형식을 사용하여 서명합니다. |
| SignData(Byte[], Int32, Int32, HashAlgorithmName) |
지정된 해시 알고리즘을 사용하여 지정된 바이트 배열의 일부 해시 값을 계산하고 결과 해시 값에 서명합니다. |
| SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat) |
지정된 데이터의 해시 값을 계산하고 지정된 서명 형식을 사용하여 서명합니다. |
SignData(Byte[], HashAlgorithmName)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
지정된 해시 알고리즘을 사용하여 지정된 바이트 배열의 해시 값을 계산하고 결과 해시 값에 서명합니다.
public:
cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public byte[] SignData(byte[] data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
member this.SignData : byte[] * System.Security.Cryptography.HashAlgorithmName -> byte[]
Public Function SignData (data As Byte(), hashAlgorithm As HashAlgorithmName) As Byte()
매개 변수
- data
- Byte[]
해시를 계산할 입력 데이터입니다.
- hashAlgorithm
- HashAlgorithmName
해시 값을 만드는 데 사용할 해시 알고리즘입니다.
반품
지정된 데이터에 대한 DSA 서명입니다.
예외
data은 null입니다.
적용 대상
SignData(Stream, HashAlgorithmName)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.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
해시 값을 만드는 데 사용할 해시 알고리즘입니다.
반품
지정된 데이터에 대한 DSA 서명입니다.
예외
data은 null입니다.
적용 대상
SignData(Byte[], HashAlgorithmName, DSASignatureFormat)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.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
서명에 사용할 인코딩 형식입니다.
반품
지정된 데이터에 대한 DSA 서명입니다.
예외
data은 null입니다.
signatureFormat 가 알려진 형식이 아닙니다.
hashAlgorithm가 있거나 비어 Name있습니다null.
해시 또는 서명 작업에서 오류가 발생했습니다.
적용 대상
SignData(Stream, HashAlgorithmName, DSASignatureFormat)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.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
서명에 사용할 인코딩 형식입니다.
반품
지정된 데이터에 대한 DSA 서명입니다.
예외
data은 null입니다.
signatureFormat 가 알려진 형식이 아닙니다.
hashAlgorithm가 있거나 비어 Name있습니다null.
해시 또는 서명 작업에서 오류가 발생했습니다.
적용 대상
SignData(Byte[], Int32, Int32, HashAlgorithmName)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.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
해시 값을 만드는 데 사용할 해시 알고리즘입니다.
반품
지정된 데이터에 대한 DSA 서명입니다.
예외
data은 null입니다.
offset가 0보다 작습니다.
-또는-
count가 0보다 작습니다.
-또는-
offset
+
count - 1의 상한 data을 초과하는 인덱스가 생성됩니다.
적용 대상
SignData(Byte[], Int32, Int32, HashAlgorithmName, DSASignatureFormat)
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.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
서명에 사용할 인코딩 형식입니다.
반품
지정된 데이터에 대한 DSA 서명입니다.
예외
data은 null입니다.
signatureFormat 가 알려진 형식이 아닙니다.
-또는- offset 0보다 작습니다.
-또는- count 0보다 작습니다.
-또는- offset + count - 1의 상한을 초과하는 인덱스가 data생성됩니다.
hashAlgorithm가 있거나 비어 Name있습니다null.
해시 또는 서명 작업에서 오류가 발생했습니다.