Javax.Crypto.CipherSpi.EngineWrap Method
Wraps a key using this cipher instance.

Syntax

[Android.Runtime.Register("engineWrap", "(Ljava/security/Key;)[B", "GetEngineWrap_Ljava_security_Key_Handler")]
protected virtual byte[] EngineWrap (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 cannot wrap this key.

Remarks

Wraps a key using this cipher instance. This method has been added to this class (for backwards compatibility, it cannot be abstract). If this method is not overridden, it throws an UnsupportedOperationException.

[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