Javax.Crypto.Cipher.Wrap Method
Wraps a key using this cipher instance.

Syntax

[Android.Runtime.Register("wrap", "(Ljava/security/Key;)[B", "")]
public byte[] Wrap (Java.Security.IKey key)

Parameters

key
the key to wrap.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Javax.Crypto.IllegalBlockSizeExceptionif the size of the resulting bytes is not a multiple of the cipher block size.
Java.Security.InvalidKeyExceptionif this cipher instance can not wrap this key.
Java.Lang.IllegalStateExceptionif this cipher instance is not initialized for wrapping.

Remarks

Wraps a key using this cipher instance.

[Android Documentation]

Requirements

Namespace: Javax.Crypto
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1