语言

KeyGenParameterSpec.GetBlockModes 方法

定义

获取加密/解密时可以使用密钥的块模式集(例如 GCM, CBC)。

[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[]

此值不能为 null。 值为下列值之一: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()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于