Share via


RSA.Decrypt 메서드

정의

오버로드

Decrypt(Byte[], RSAEncryptionPadding)

파생 클래스에서 재정의하는 경우 지정된 패딩 모드를 사용하여 입력 데이터를 해독합니다.

Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)

지정된 패딩 모드를 사용하여 입력 데이터의 암호를 해독합니다.

Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)

지정된 패딩 모드를 사용하여 입력 데이터의 암호를 해독합니다.

Decrypt(Byte[], RSAEncryptionPadding)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

파생 클래스에서 재정의하는 경우 지정된 패딩 모드를 사용하여 입력 데이터를 해독합니다.

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

매개 변수

data
Byte[]

해독할 데이터입니다.

padding
RSAEncryptionPadding

패딩 모드입니다.

반환

Byte[]

암호 해독된 데이터입니다.

예외

data 또는 paddingnull인 경우

파생 클래스가 이 메서드를 재정의해야 합니다.

padding은 알 수 없거나 이 구현에서 지원되지 않습니다.

또는

data의 길이가 KeySize의 바이트 수와 같지 않습니다.

또는

이 인스턴스는 퍼블릭 키만 나타냅니다.

또는

암호 해독 작업에 실패했습니다.

추가 정보

적용 대상

Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

지정된 패딩 모드를 사용하여 입력 데이터의 암호를 해독합니다.

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

매개 변수

data
ReadOnlySpan<Byte>

해독할 데이터입니다.

padding
RSAEncryptionPadding

패딩 모드입니다.

반환

Byte[]

암호 해독된 데이터입니다.

예외

padding이(가) null인 경우

padding은 알 수 없거나 이 구현에서 지원되지 않습니다.

또는

암호 해독 작업에 실패했습니다.

적용 대상

Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)

Source:
RSA.cs
Source:
RSA.cs
Source:
RSA.cs

지정된 패딩 모드를 사용하여 입력 데이터의 암호를 해독합니다.

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

매개 변수

data
ReadOnlySpan<Byte>

해독할 데이터입니다.

destination
Span<Byte>

암호 해독된 데이터를 받을 버퍼입니다.

padding
RSAEncryptionPadding

패딩 모드입니다.

반환

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

예외

paddingnull입니다.

destination 버퍼가 너무 작아서 암호 해독된 데이터를 저장할 수 없습니다.

padding은 알 수 없거나 이 구현에서 지원되지 않습니다.

또는

암호 해독 작업에 실패했습니다.

적용 대상