CipherSpi.EngineGetIV Method

Definition

Returns the initialization vector (IV) in a new buffer.

[Android.Runtime.Register("engineGetIV", "()[B", "GetEngineGetIVHandler")]
protected abstract byte[]? EngineGetIV ();
[<Android.Runtime.Register("engineGetIV", "()[B", "GetEngineGetIVHandler")>]
abstract member EngineGetIV : unit -> byte[]

Returns

Byte[]

the initialization vector in a new buffer, or null if the underlying algorithm does not use an IV, or if the IV has not yet been set.

Attributes

Remarks

Returns the initialization vector (IV) in a new buffer.

This is useful in the context of password-based encryption or decryption, where the IV is derived from a user-provided passphrase.

Java documentation for javax.crypto.CipherSpi.engineGetIV().

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