Share via


ECDsaCng.SignData 메서드

정의

서명을 생성합니다.

오버로드

SignData(Byte[])

지정된 데이터에 대한 서명을 생성합니다.

SignData(Stream)

스트림 끝까지 읽어들여 지정된 데이터 스트림에 대한 서명을 생성합니다.

SignData(Byte[], Int32, Int32)

지정된 오프셋에서 시작하여 지정된 길이의 데이터에 대한 디지털 서명을 생성합니다.

SignData(Byte[])

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

지정된 데이터에 대한 서명을 생성합니다.

public:
 cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data);
public byte[] SignData (byte[] data);
override this.SignData : byte[] -> byte[]
member this.SignData : byte[] -> byte[]
Public Function SignData (data As Byte()) As Byte()

매개 변수

data
Byte[]

서명할 메시지 데이터입니다.

반환

Byte[]

지정된 데이터에 대한 디지털 서명입니다.

예외

data이(가) null인 경우

인스턴스와 연결된 키 정보에는 프라이빗 키가 없습니다.

설명

이 메서드는 속성을 사용하여 HashAlgorithm 입력 데이터를 해시한 다음 결과에 서명하여 지정된 데이터에 대한 서명을 생성합니다.

KeyContainerPermissionFlags.Sign CNG(Cryptography Next Generation) 키가 개체에 의해 임의로 생성되지 않은 경우 플래그가 ECDsaCng 필요합니다.

적용 대상

SignData(Stream)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

스트림 끝까지 읽어들여 지정된 데이터 스트림에 대한 서명을 생성합니다.

public:
 cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data);
public byte[] SignData (System.IO.Stream data);
[System.Security.SecurityCritical]
public byte[] SignData (System.IO.Stream data);
override this.SignData : System.IO.Stream -> byte[]
[<System.Security.SecurityCritical>]
member this.SignData : System.IO.Stream -> byte[]
member this.SignData : System.IO.Stream -> byte[]
Public Function SignData (data As Stream) As Byte()

매개 변수

data
Stream

서명할 데이터 스트림입니다.

반환

Byte[]

지정된 데이터 스트림에 대한 디지털 서명입니다.

특성

예외

data이(가) null인 경우

인스턴스와 연결된 키 정보에는 프라이빗 키가 없습니다.

설명

이 메서드는 속성을 사용하여 입력 데이터를 해시한 다음 결과에 서명하여 지정된 데이터 스트림에 HashAlgorithm 대한 서명을 생성합니다.

KeyContainerPermissionFlags.Sign CNG(Cryptography Next Generation) 키가 개체에 의해 임의로 생성되지 않은 경우 플래그가 ECDsaCng 필요합니다.

적용 대상

SignData(Byte[], Int32, Int32)

Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs
Source:
Cng.NotSupported.cs

지정된 오프셋에서 시작하여 지정된 길이의 데이터에 대한 디지털 서명을 생성합니다.

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

매개 변수

data
Byte[]

서명할 메시지 데이터입니다.

offset
Int32

문자열에서 서명을 시작할 위치입니다.

count
Int32

문자열에서 offset부터 서명할 길이(문자 단위)입니다.

반환

Byte[]

지정된 길이의 데이터에 대한 디지털 서명입니다.

특성

예외

data이(가) null인 경우

count 또는 offset으로 인해 데이터 문자열의 경계를 넘어 읽게 된 경우

인스턴스와 연결된 키 정보에는 프라이빗 키가 없습니다.

설명

이 메서드는 속성을 사용하여 HashAlgorithm 입력 데이터를 해시한 다음 결과에 서명하여 지정된 데이터에 대한 서명을 생성합니다.

KeyContainerPermissionFlags.Sign CNG(Cryptography Next Generation) 키가 개체에 의해 임의로 생성되지 않은 경우 플래그가 ECDsaCng 필요합니다.

적용 대상