CipherSpi.EngineGetKeySize(IKey) Method

Definition

Returns the key size of the given key object in bits.

[Android.Runtime.Register("engineGetKeySize", "(Ljava/security/Key;)I", "GetEngineGetKeySize_Ljava_security_Key_Handler")]
protected virtual int EngineGetKeySize (Java.Security.IKey? key);
[<Android.Runtime.Register("engineGetKeySize", "(Ljava/security/Key;)I", "GetEngineGetKeySize_Ljava_security_Key_Handler")>]
abstract member EngineGetKeySize : Java.Security.IKey -> int
override this.EngineGetKeySize : Java.Security.IKey -> int

Parameters

key
IKey

the key object.

Returns

Int32

the key size of the given key object.

Attributes

Exceptions

if the size of the key cannot be determined by this implementation.

Remarks

Java documentation for javax.crypto.CipherSpi.engineGetKeySize(java.security.Key).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to