RSACng.TryDecrypt 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用私钥解密数据。
public:
 override bool TryDecrypt(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::RSAEncryptionPadding ^ padding, [Runtime::InteropServices::Out] int % bytesWritten);public override bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding, out int bytesWritten);override this.TryDecrypt : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.RSAEncryptionPadding * int -> boolPublic Overrides Function TryDecrypt (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), padding As RSAEncryptionPadding, ByRef bytesWritten As Integer) As Boolean参数
- data
- ReadOnlySpan<Byte>
要解密的数据。
- padding
- RSAEncryptionPadding
填充模式。
- bytesWritten
- Int32
此方法返回时,为写入 destination 的字节总数。 该参数未经初始化即被处理。
返回
如果 destination 的长度足以接收解密数据,则为 true;否则为 false。