Compartir a través de


RsaKeyWrapProvider.WrapKey(Byte[]) Method

Definition

Wraps a key using RSA encryption.

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

Parameters

keyBytes
Byte[]

The key to be wrapped.

Returns

Byte[]

A wrapped key.

Exceptions

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

Thrown if Dispose(Boolean) has been called.

Thrown if the key wrapping operation fails.

Thrown if the internal RSA algorithm is null.

Applies to