RSA.Decrypt メソッド

定義

オーバーロード

Decrypt(Byte[], RSAEncryptionPadding)

派生クラスでオーバーライドされると、指定されたパディング モードを使用して入力データを復号化します。

Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)

指定したパディング モードを使用して、入力データを復号化します。

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

指定したパディング モードを使用して、入力データを復号化します。

Decrypt(Byte[], RSAEncryptionPadding)

ソース:
RSA.cs
ソース:
RSA.cs
ソース:
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)

ソース:
RSA.cs
ソース:
RSA.cs
ソース:
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[]

復号化されるデータ。

例外

paddingnullです。

padding が不明であるか、この実装ではサポートされていません。

または

復号化操作に失敗しました。

適用対象

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

ソース:
RSA.cs
ソース:
RSA.cs
ソース:
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 が不明であるか、この実装ではサポートされていません。

または

復号化操作に失敗しました。

適用対象