KeyProtection.GetBlockModes 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.
Gets the set of block modes (e.
[Android.Runtime.Register("getBlockModes", "()[Ljava/lang/String;", "", ApiSince=23)]
[Android.Runtime.StringDef(Fields=new System.String[] { "BlockModeEcb", "BlockModeCbc", "BlockModeCtr", "BlockModeGcm" }, Type="Android.Security.Keystore.KeyProperties")]
public string[] GetBlockModes ();
[<Android.Runtime.Register("getBlockModes", "()[Ljava/lang/String;", "", ApiSince=23)>]
[<Android.Runtime.StringDef(Fields=new System.String[] { "BlockModeEcb", "BlockModeCbc", "BlockModeCtr", "BlockModeGcm" }, Type="Android.Security.Keystore.KeyProperties")>]
member this.GetBlockModes : unit -> string[]
Returns
- Attributes
Remarks
Gets the set of block modes (e.g., GCM
, CBC
) with which the key can be used when encrypting/decrypting. Attempts to use the key with any other block modes will be rejected.
See KeyProperties
.BLOCK_MODE
constants.
Java documentation for android.security.keystore.KeyProtection.getBlockModes()
.
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.