語言

KeyGenParameterSpec.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")]
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[]

傳回

String[]

這個值不可能為零值。 價值屬於以下之一:KeyProperties.BLOCK_MODE_ECB;KeyProperties.BLOCK_MODE_CBC;KeyProperties.BLOCK_MODE_CTR;KeyProperties.BLOCK_MODE_GCM

屬性

備註

取得一組區塊模式(例如, GCM, CBC),可用於加密/解密時使用金鑰的模式。 嘗試將金鑰用於任何其他區塊模式都會被拒絕。

參見 KeyProperties。 BLOCK_MODE 不變的。

Java 文件 android.security.keystore.KeyGenParameterSpec.getBlockModes()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於