Cipher.GetIV Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the initialization vector (IV) in a new buffer.
[Android.Runtime.Register("getIV", "()[B", "")]
public byte[]? GetIV ();
[<Android.Runtime.Register("getIV", "()[B", "")>]
member this.GetIV : unit -> byte[]
Returns
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 case where a random IV was created, or in the context of password-based encryption or decryption, where the IV is derived from a user-supplied password.
Java documentation for javax.crypto.Cipher.getIV()
.
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.