Condividi tramite


RsaKeyWrapProvider.UnwrapKey(Byte[]) Method

Definition

Unwraps a key using RSA decryption.

public override byte[] UnwrapKey (byte[] keyBytes);
override this.UnwrapKey : byte[] -> byte[]
Public Overrides Function UnwrapKey (keyBytes As Byte()) As Byte()

Parameters

keyBytes
Byte[]

The bytes to unwrap.

Returns

Byte[]

The unwrapped key.

Exceptions

Thrown if keyBytes is null or has a length of 0.

Thrown if Dispose(Boolean) has been called.

Thrown if the key unwrapping operation fails.

Thrown if the internal RSA algorithm is null.

Applies to