Share via


SymmetricKeyWrapProvider.UnwrapKey(Byte[]) Method

Definition

Unwrap a key using Symmetric decryption.

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

Parameters

keyBytes
Byte[]

bytes to unwrap

Returns

Byte[]

Unwraped key

Exceptions

'keyBytes' is null or length == 0.

'keyBytes' is not a multiple of 8.

Failed to unwrap the wrappedKey.

Applies to